Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004424/0.004424, allocations: 105.1 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 191.1 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001965/0.001965, allocations: 281.6 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9097/0.9097, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 91.84 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1573, allocations: 86.98 MB / 0.7664 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005317/0.1627, allocations: 3.835 MB / 0.7701 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002715/0.1654, allocations: 1.729 MB / 0.7718 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002139/0.1657, allocations: 8 kB / 0.7718 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001313/0.167, allocations: 492.2 kB / 0.7723 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005094/0.1675, allocations: 226.9 kB / 0.7725 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004946/0.168, allocations: 207.5 kB / 0.7727 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005075/0.1686, allocations: 478.2 kB / 0.7731 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000526/0.1691, allocations: 361.2 kB / 0.7735 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002326/0.1693, allocations: 199.2 kB / 0.7737 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004103/0.1697, allocations: 219.1 kB / 0.7739 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.554e-05/0.1698, allocations: 28 kB / 0.7739 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004215/0.1702, allocations: 247.4 kB / 0.7741 GB, free: 444 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.1704, allocations: 123.7 kB / 0.7743 GB, free: 320 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001812/0.1706, allocations: 171.2 kB / 0.7744 GB, free: 148 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.3227/0.4933, allocations: 0.4968 MB / 0.7749 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.4933, allocations: 0.9062 kB / 0.7749 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.532e-06/0.4934, allocations: 0.5 kB / 0.7749 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.278e-06/0.4934, allocations: 0.6562 kB / 0.7749 GB, free: 10.22 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009372/0.4943, allocations: 0.6311 MB / 0.7755 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.4944, allocations: 9.656 kB / 0.7755 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000931/0.4953, allocations: 132.6 kB / 0.7757 GB, free: 9.777 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.4956, allocations: 296.5 kB / 0.776 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.4957, allocations: 26.25 kB / 0.776 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.466e-05/0.4957, allocations: 25.03 kB / 0.776 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006133/0.4963, allocations: 460.7 kB / 0.7764 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.4964, allocations: 5.969 kB / 0.7764 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.4964, allocations: 14.52 kB / 0.7765 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.034e-05/0.4965, allocations: 33.89 kB / 0.7765 GB, free: 9.43 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004793/0.4969, allocations: 321.4 kB / 0.7768 GB, free: 9.43 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.4987, allocations: 2.17 MB / 0.7789 GB, free: 7.734 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.4991, allocations: 258.8 kB / 0.7792 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.4993, allocations: 104.2 kB / 0.7793 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.4993, allocations: 4.875 kB / 0.7793 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.594e-05/0.4993, allocations: 35.91 kB / 0.7793 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.4994, allocations: 6.875 kB / 0.7793 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0005425/0.4999, allocations: 299.9 kB / 0.7796 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.4999, allocations: 52.84 kB / 0.7796 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.5002, allocations: 267.2 kB / 0.7799 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.5002, allocations: 29.52 kB / 0.7799 GB, free: 7.223 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.585e-05/0.5003, allocations: 209.5 kB / 0.7801 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.883e-05/0.5003, allocations: 50.3 kB / 0.7802 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.894e-05/0.5004, allocations: 46.67 kB / 0.7802 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.278e-05/0.5005, allocations: 338.1 kB / 0.7805 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.781e-05/0.5006, allocations: 59.34 kB / 0.7806 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.5007, allocations: 140.4 kB / 0.7807 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.5009, allocations: 218.1 kB / 0.7809 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5009, allocations: 3.031 kB / 0.7809 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003858/0.5013, allocations: 270.5 kB / 0.7812 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.5013, allocations: 6.984 kB / 0.7812 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.5014, allocations: 3.281 kB / 0.7812 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001522/0.5015, allocations: 26.52 kB / 0.7812 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/0.5017, allocations: 51.31 kB / 0.7813 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007035/0.5024, allocations: 1.427 MB / 0.7827 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.5026, allocations: 27.25 kB / 0.7827 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.5026, allocations: 10.16 kB / 0.7827 GB, free: 5.066 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.5027, allocations: 170.3 kB / 0.7829 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.512e-05/0.5028, allocations: 27.59 kB / 0.7829 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.041e-05/0.5028, allocations: 25.02 kB / 0.7829 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.5028, allocations: 10.56 kB / 0.7829 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.5028, allocations: 3.844 kB / 0.7829 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.5029, allocations: 3.609 kB / 0.7829 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008875/0.5037, allocations: 0.7005 MB / 0.7836 GB, free: 20.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.5038, allocations: 2.344 kB / 0.7836 GB, free: 20.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.771e-05/0.5039, allocations: 28.38 kB / 0.7837 GB, free: 20.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.032e-05/0.5039, allocations: 23.53 kB / 0.7837 GB, free: 20.49 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.5039, allocations: 6.406 kB / 0.7837 GB, free: 20.49 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008309/0.5048, allocations: 1.41 MB / 0.7851 GB, free: 19.14 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.5048, allocations: 5.531 kB / 0.7851 GB, free: 19.14 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/0.5051, allocations: 325.5 kB / 0.7854 GB, free: 18.89 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.026e-05/0.5052, allocations: 114.5 kB / 0.7855 GB, free: 18.78 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.5052, allocations: 14.2 kB / 0.7855 GB, free: 18.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.5054, allocations: 6.469 kB / 0.7855 GB, free: 18.77 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.47e-05/0.5054, allocations: 18.11 kB / 0.7855 GB, free: 18.77 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.5054, allocations: 4.469 kB / 0.7855 GB, free: 18.77 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001592/0.5056, allocations: 191.7 kB / 0.7857 GB, free: 18.66 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5056, allocations: 3.469 kB / 0.7857 GB, free: 18.66 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003753/0.506, allocations: 84.25 kB / 0.7858 GB, free: 18.63 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.049e-05/0.5061, allocations: 96.69 kB / 0.7859 GB, free: 18.55 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003921/0.5065, allocations: 277.7 kB / 0.7862 GB, free: 18.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5065, allocations: 0 / 0.7862 GB, free: 18.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.5067, allocations: 185.5 kB / 0.7863 GB, free: 18.27 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004257/0.5071, allocations: 60.28 kB / 0.7864 GB, free: 18.25 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006966/0.5078, allocations: 0.5381 MB / 0.7869 GB, free: 17.91 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003493/0.5082, allocations: 0.7914 MB / 0.7877 GB, free: 17.21 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001192/0.5083, allocations: 46.45 kB / 0.7877 GB, free: 17.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.495e-05/0.5084, allocations: 20 kB / 0.7877 GB, free: 17.2 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/0.5084, allocations: 0 / 0.7877 GB, free: 17.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.00584/0.5142, allocations: 2.742 MB / 0.7904 GB, free: 17.02 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)