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.0007694/0.0007693, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005151/0.005151, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.32/1.32, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001709/0.001709, allocations: 266.9 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9194/0.9194, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004006/0.0004006, allocations: 17.34 kB / 0.5987 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1472, allocations: 88.55 MB / 0.6851 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.004275/0.1516, allocations: 3.478 MB / 0.6885 GB, free: 11.56 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002342/0.1539, allocations: 1.699 MB / 0.6902 GB, free: 9.859 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.1541, allocations: 5.344 kB / 0.6902 GB, free: 9.855 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001802/0.1543, allocations: 63.48 kB / 0.6903 GB, free: 9.793 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004538/0.1547, allocations: 218.2 kB / 0.6905 GB, free: 9.582 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004505/0.1552, allocations: 192.3 kB / 0.6906 GB, free: 9.395 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006183/0.1558, allocations: 0.6626 MB / 0.6913 GB, free: 8.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000403/0.1562, allocations: 319.4 kB / 0.6916 GB, free: 8.414 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001777/0.1564, allocations: 144.6 kB / 0.6917 GB, free: 8.273 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003625/0.1568, allocations: 207.2 kB / 0.6919 GB, free: 8.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.842e-05/0.1568, allocations: 16 kB / 0.6919 GB, free: 8.055 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004758/0.1573, allocations: 312.2 kB / 0.6922 GB, free: 7.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.1575, allocations: 103.7 kB / 0.6923 GB, free: 7.648 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.1577, allocations: 188.8 kB / 0.6925 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000552/0.1582, allocations: 0.4906 MB / 0.693 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1582, allocations: 3.938 kB / 0.693 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1582, allocations: 0 / 0.693 GB, free: 6.961 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.1582, allocations: 0 / 0.693 GB, free: 6.961 MB / 494.1 MB 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.0009145/0.1592, allocations: 0.5731 MB / 0.6936 GB, free: 6.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.1592, allocations: 8.031 kB / 0.6936 GB, free: 6.332 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008801/0.1601, allocations: 136.4 kB / 0.6937 GB, free: 6.199 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.1605, allocations: 283.7 kB / 0.694 GB, free: 5.883 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.1605, allocations: 21.03 kB / 0.694 GB, free: 5.863 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.766e-05/0.1606, allocations: 32.36 kB / 0.694 GB, free: 5.832 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006939/0.1613, allocations: 459.9 kB / 0.6945 GB, free: 5.344 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.1613, allocations: 3.938 kB / 0.6945 GB, free: 5.34 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.994e-05/0.1613, allocations: 23.92 kB / 0.6945 GB, free: 5.316 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.007e-05/0.1614, allocations: 32.55 kB / 0.6945 GB, free: 5.285 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004948/0.1619, allocations: 317.9 kB / 0.6948 GB, free: 4.977 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.1643, allocations: 2.197 MB / 0.697 GB, free: 2.566 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003837/0.1647, allocations: 251.8 kB / 0.6972 GB, free: 2.293 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002521/0.1649, allocations: 108.8 kB / 0.6973 GB, free: 2.184 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.183e-05/0.165, allocations: 4 kB / 0.6973 GB, free: 2.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.165, allocations: 34.56 kB / 0.6974 GB, free: 2.137 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.165, allocations: 0 / 0.6974 GB, free: 2.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006326/0.1657, allocations: 310.3 kB / 0.6976 GB, free: 1.809 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.1657, allocations: 51.41 kB / 0.6977 GB, free: 1.746 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003/0.166, allocations: 262.6 kB / 0.6979 GB, free: 1.488 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.166, allocations: 33.7 kB / 0.698 GB, free: 1.449 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.1662, allocations: 207.8 kB / 0.6982 GB, free: 1.242 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.134e-05/0.1662, allocations: 51.3 kB / 0.6982 GB, free: 1.191 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-05/0.1663, allocations: 21.7 kB / 0.6982 GB, free: 1.164 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1665, allocations: 342.8 kB / 0.6986 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.48e-05/0.1666, allocations: 52.44 kB / 0.6986 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.1667, allocations: 149.6 kB / 0.6988 GB, free: 0.582 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002718/0.167, allocations: 216.8 kB / 0.699 GB, free: 340 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.167, allocations: 4 kB / 0.699 GB, free: 336 kB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004159/0.1674, allocations: 269.9 kB / 0.6992 GB, free: 56 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.1675, allocations: 8 kB / 0.6992 GB, free: 48 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1675, allocations: 4 kB / 0.6992 GB, free: 44 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/0.1677, allocations: 24.84 kB / 0.6993 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.1679, allocations: 52.02 kB / 0.6993 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.1689, allocations: 1.323 MB / 0.7006 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.1691, allocations: 27.69 kB / 0.7006 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.1691, allocations: 16.16 kB / 0.7007 GB, free: 14.46 MB / 0.4981 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.0001464/0.1693, allocations: 167 kB / 0.7008 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.1694, allocations: 27.66 kB / 0.7008 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.873e-05/0.1694, allocations: 29.83 kB / 0.7009 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1694, allocations: 4 kB / 0.7009 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.1694, allocations: 0 / 0.7009 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.1695, allocations: 3.984 kB / 0.7009 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000866/0.1703, allocations: 0.7025 MB / 0.7016 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-06/0.1703, allocations: 0 / 0.7016 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.991e-05/0.1704, allocations: 28.17 kB / 0.7016 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.922e-05/0.1705, allocations: 28.78 kB / 0.7016 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.1705, allocations: 4 kB / 0.7016 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009301/0.1715, allocations: 1.311 MB / 0.7029 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1715, allocations: 7.969 kB / 0.7029 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003242/0.1718, allocations: 319.1 kB / 0.7032 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.973e-05/0.1719, allocations: 116.8 kB / 0.7033 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.172, allocations: 3.984 kB / 0.7033 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.1721, allocations: 12 kB / 0.7033 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.862e-05/0.1722, allocations: 15.98 kB / 0.7034 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-06/0.1722, allocations: 4 kB / 0.7034 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001761/0.1724, allocations: 194 kB / 0.7035 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1724, allocations: 0 / 0.7035 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003818/0.1728, allocations: 79.78 kB / 0.7036 GB, free: 11.13 MB / 0.4981 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 0.0001295/0.1729, allocations: 103.9 kB / 0.7037 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004862/0.1734, allocations: 270.3 kB / 0.704 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1734, allocations: 0 / 0.704 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.1736, allocations: 191.6 kB / 0.7042 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005611/0.1742, allocations: 54.47 kB / 0.7042 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.1752, allocations: 0.6774 MB / 0.7049 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.1757, allocations: 0.7872 MB / 0.7056 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001451/0.1758, allocations: 50.19 kB / 0.7057 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.244e-05/0.1759, allocations: 23.44 kB / 0.7057 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of SimCode: time 6.11e-07/0.1759, allocations: 0 / 0.7057 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of Templates: time 0.005959/0.1819, allocations: 2.562 MB / 0.7082 GB, free: 6.355 MB / 0.4981 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)