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.001594/0.001594, allocations: 106.9 kB / 16.41 MB, free: 6.488 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.001227/0.001227, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.388/1.388, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002441/0.002441, allocations: 288.2 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.989/0.989, allocations: 169.2 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 99.84 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5307/0.5327, allocations: 86.97 MB / 0.767 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.006012/0.5388, allocations: 3.837 MB / 0.7708 GB, free: 64 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003087/0.5419, allocations: 1.733 MB / 0.7725 GB, free: 14.32 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003329/0.5423, allocations: 4 kB / 0.7725 GB, free: 14.32 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001609/0.5439, allocations: 490.1 kB / 0.7729 GB, free: 13.84 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.000695/0.5446, allocations: 226.8 kB / 0.7732 GB, free: 13.61 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006428/0.5453, allocations: 209.5 kB / 0.7734 GB, free: 13.41 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006844/0.546, allocations: 478.1 kB / 0.7738 GB, free: 12.94 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006597/0.5466, allocations: 365.2 kB / 0.7742 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003493/0.547, allocations: 191.3 kB / 0.7743 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005038/0.5475, allocations: 219.2 kB / 0.7745 GB, free: 12.18 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.976e-05/0.5476, allocations: 28 kB / 0.7746 GB, free: 12.15 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004981/0.5481, allocations: 247.4 kB / 0.7748 GB, free: 11.91 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.5483, allocations: 135.6 kB / 0.7749 GB, free: 11.78 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.5485, allocations: 167.2 kB / 0.7751 GB, free: 11.61 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000752/0.5493, allocations: 0.5048 MB / 0.7756 GB, free: 11.11 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.5493, allocations: 0 / 0.7756 GB, free: 11.11 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.382e-06/0.5493, allocations: 0 / 0.7756 GB, free: 11.11 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.418e-05/0.5493, allocations: 4 kB / 0.7756 GB, free: 11.11 MB / 0.545 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.001197/0.5505, allocations: 0.6315 MB / 0.7762 GB, free: 10.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.5506, allocations: 12.03 kB / 0.7762 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009902/0.5516, allocations: 128.4 kB / 0.7763 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004182/0.552, allocations: 295.7 kB / 0.7766 GB, free: 9.961 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.552, allocations: 21.03 kB / 0.7767 GB, free: 9.941 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.5521, allocations: 28.38 kB / 0.7767 GB, free: 9.914 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006676/0.5528, allocations: 467.9 kB / 0.7771 GB, free: 9.422 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.5528, allocations: 4 kB / 0.7771 GB, free: 9.418 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.903e-05/0.5528, allocations: 12 kB / 0.7771 GB, free: 9.406 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.063e-05/0.5529, allocations: 28.53 kB / 0.7772 GB, free: 9.379 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005038/0.5534, allocations: 325.9 kB / 0.7775 GB, free: 9.059 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002282/0.5557, allocations: 2.181 MB / 0.7796 GB, free: 6.664 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003916/0.5561, allocations: 247.8 kB / 0.7798 GB, free: 6.395 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.5563, allocations: 116.8 kB / 0.78 GB, free: 6.277 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.5564, allocations: 0 / 0.78 GB, free: 6.277 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.5564, allocations: 38.56 kB / 0.78 GB, free: 6.23 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.032e-06/0.5564, allocations: 0 / 0.78 GB, free: 6.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0006444/0.5571, allocations: 295.5 kB / 0.7803 GB, free: 5.914 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.5571, allocations: 59.41 kB / 0.7803 GB, free: 5.844 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.5574, allocations: 270.5 kB / 0.7806 GB, free: 5.578 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.5574, allocations: 29.7 kB / 0.7806 GB, free: 5.543 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.5576, allocations: 199.8 kB / 0.7808 GB, free: 5.344 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.019e-05/0.5576, allocations: 59.27 kB / 0.7809 GB, free: 5.285 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.43e-05/0.5577, allocations: 41.95 kB / 0.7809 GB, free: 5.234 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.5579, allocations: 338.8 kB / 0.7812 GB, free: 4.895 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.558, allocations: 52.44 kB / 0.7813 GB, free: 4.844 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.5581, allocations: 144.1 kB / 0.7814 GB, free: 4.664 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002745/0.5584, allocations: 218.9 kB / 0.7816 GB, free: 4.41 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.5584, allocations: 0 / 0.7816 GB, free: 4.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000453/0.5589, allocations: 270.1 kB / 0.7819 GB, free: 4.137 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.5589, allocations: 8 kB / 0.7819 GB, free: 4.129 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.5589, allocations: 4.094 kB / 0.7819 GB, free: 4.125 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001846/0.5591, allocations: 28.78 kB / 0.7819 GB, free: 4.094 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001873/0.5593, allocations: 47.92 kB / 0.782 GB, free: 4.047 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.5606, allocations: 1.426 MB / 0.7834 GB, free: 2.48 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.5608, allocations: 27.69 kB / 0.7834 GB, free: 2.453 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.5608, allocations: 12.09 kB / 0.7834 GB, free: 2.441 MB / 0.545 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.0001927/0.561, allocations: 176 kB / 0.7836 GB, free: 2.262 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.5611, allocations: 23.72 kB / 0.7836 GB, free: 2.238 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.147e-05/0.5611, allocations: 33.83 kB / 0.7836 GB, free: 2.203 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.5611, allocations: 0 / 0.7836 GB, free: 2.203 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.5612, allocations: 4 kB / 0.7836 GB, free: 2.199 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.5612, allocations: 0 / 0.7836 GB, free: 2.199 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009727/0.5621, allocations: 0.6985 MB / 0.7843 GB, free: 1.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.5622, allocations: 4 kB / 0.7843 GB, free: 1.406 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.515e-05/0.5622, allocations: 23.98 kB / 0.7843 GB, free: 1.383 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.113e-05/0.5623, allocations: 28.97 kB / 0.7844 GB, free: 1.352 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.5624, allocations: 4 kB / 0.7844 GB, free: 1.348 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001009/0.5634, allocations: 1.41 MB / 0.7857 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/0.5634, allocations: 11.95 kB / 0.7858 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003541/0.5638, allocations: 320.4 kB / 0.7861 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.5639, allocations: 108.8 kB / 0.7862 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.207e-05/0.5639, allocations: 4 kB / 0.7862 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.5641, allocations: 11.98 kB / 0.7862 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.5641, allocations: 23.92 kB / 0.7862 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.5642, allocations: 4 kB / 0.7862 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001954/0.5644, allocations: 190 kB / 0.7864 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5644, allocations: 0 / 0.7864 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000413/0.5648, allocations: 83.69 kB / 0.7865 GB, free: 15 MB / 0.5606 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.0001286/0.5649, allocations: 107.2 kB / 0.7866 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004722/0.5654, allocations: 266.5 kB / 0.7868 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.5654, allocations: 0 / 0.7868 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002269/0.5656, allocations: 191.8 kB / 0.787 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005018/0.5662, allocations: 68.27 kB / 0.7871 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009932/0.5672, allocations: 0.5803 MB / 0.7876 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.5676, allocations: 0.787 MB / 0.7884 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.194e-05/0.5677, allocations: 27.44 kB / 0.7884 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of SimCode: time 3.21e-07/0.5677, allocations: 0 / 0.7884 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of Templates: time 0.007704/0.5754, allocations: 4.404 MB / 0.7927 GB, free: 8.504 MB / 0.5606 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)