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.001203/0.001203, allocations: 111.5 kB / 16.37 MB, free: 6.004 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.001259/0.001259, allocations: 197.6 kB / 17.31 MB, free: 5.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.283/1.283, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002145/0.002145, allocations: 287 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.893/0.893, allocations: 169.2 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 91.41 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.17, allocations: 86.97 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005912/0.1759, allocations: 3.819 MB / 0.6853 GB, free: 3.609 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.1783, allocations: 1.726 MB / 0.687 GB, free: 1.875 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.1784, allocations: 15.94 kB / 0.687 GB, free: 1.859 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001237/0.1796, allocations: 0.4942 MB / 0.6875 GB, free: 1.363 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003823/0.18, allocations: 222.9 kB / 0.6877 GB, free: 1.145 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000404/0.1804, allocations: 202.6 kB / 0.6879 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004334/0.1809, allocations: 478.4 kB / 0.6884 GB, free: 492 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004847/0.1814, allocations: 361.2 kB / 0.6887 GB, free: 132 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2581/0.4395, allocations: 187.9 kB / 0.6889 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004994/0.4401, allocations: 213.3 kB / 0.6891 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.72e-05/0.4401, allocations: 28.19 kB / 0.6891 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000451/0.4406, allocations: 250.6 kB / 0.6894 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.4407, allocations: 126 kB / 0.6895 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.4409, allocations: 171.9 kB / 0.6897 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005679/0.4415, allocations: 0.4991 MB / 0.6901 GB, free: 12.89 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.4415, allocations: 0 / 0.6901 GB, free: 12.89 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4415, allocations: 2.359 kB / 0.6901 GB, free: 12.89 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.4415, allocations: 0 / 0.6901 GB, free: 12.89 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.0008348/0.4424, allocations: 0.6311 MB / 0.6908 GB, free: 12.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.4424, allocations: 9.281 kB / 0.6908 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008556/0.4433, allocations: 136 kB / 0.6909 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.4436, allocations: 298.1 kB / 0.6912 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.4436, allocations: 23.45 kB / 0.6912 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.531e-05/0.4437, allocations: 27.41 kB / 0.6912 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006052/0.4443, allocations: 464.1 kB / 0.6917 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.4443, allocations: 4.688 kB / 0.6917 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.4444, allocations: 12.31 kB / 0.6917 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.956e-05/0.4444, allocations: 38.86 kB / 0.6917 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004708/0.4449, allocations: 321.5 kB / 0.692 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.4467, allocations: 2.176 MB / 0.6942 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003221/0.447, allocations: 255.5 kB / 0.6944 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.4472, allocations: 110.4 kB / 0.6945 GB, free: 10.24 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.4473, allocations: 2.375 kB / 0.6945 GB, free: 10.24 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.4473, allocations: 36.56 kB / 0.6945 GB, free: 10.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.4473, allocations: 1.219 kB / 0.6945 GB, free: 10.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004948/0.4478, allocations: 298.9 kB / 0.6948 GB, free: 10.06 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.99e-05/0.4478, allocations: 55.59 kB / 0.6949 GB, free: 9.996 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.4481, allocations: 263.6 kB / 0.6951 GB, free: 9.895 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.4481, allocations: 31.73 kB / 0.6952 GB, free: 9.859 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.141e-05/0.4482, allocations: 208.2 kB / 0.6954 GB, free: 9.719 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.643e-05/0.4482, allocations: 50.77 kB / 0.6954 GB, free: 9.688 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.375e-05/0.4483, allocations: 47.66 kB / 0.6955 GB, free: 9.664 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.001e-05/0.4483, allocations: 339.7 kB / 0.6958 GB, free: 9.348 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.19e-05/0.4484, allocations: 56.58 kB / 0.6958 GB, free: 9.348 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.4485, allocations: 148.7 kB / 0.696 GB, free: 9.242 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.4488, allocations: 222.5 kB / 0.6962 GB, free: 9.137 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4488, allocations: 2.531 kB / 0.6962 GB, free: 9.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003699/0.4491, allocations: 263.1 kB / 0.6964 GB, free: 9.082 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.4492, allocations: 8.906 kB / 0.6965 GB, free: 9.082 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.4492, allocations: 4.797 kB / 0.6965 GB, free: 9.082 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/0.4493, allocations: 31.56 kB / 0.6965 GB, free: 9.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.4495, allocations: 46.03 kB / 0.6965 GB, free: 9.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007349/0.4503, allocations: 1.421 MB / 0.6979 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.4504, allocations: 36.91 kB / 0.698 GB, free: 7.703 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.4505, allocations: 10.88 kB / 0.698 GB, free: 7.703 MB / 494.1 MB 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.0001273/0.4506, allocations: 170.4 kB / 0.6981 GB, free: 7.582 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.692e-05/0.4506, allocations: 24.59 kB / 0.6982 GB, free: 7.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.592e-05/0.4507, allocations: 28.7 kB / 0.6982 GB, free: 7.566 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.207e-06/0.4507, allocations: 2.125 kB / 0.6982 GB, free: 7.566 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4507, allocations: 0 / 0.6982 GB, free: 7.566 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4507, allocations: 1.875 kB / 0.6982 GB, free: 7.566 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007687/0.4515, allocations: 0.7011 MB / 0.6989 GB, free: 7.141 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.4515, allocations: 2.359 kB / 0.6989 GB, free: 7.141 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.732e-05/0.4516, allocations: 23.11 kB / 0.6989 GB, free: 7.141 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.195e-05/0.4517, allocations: 25.39 kB / 0.6989 GB, free: 7.133 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.4517, allocations: 8.531 kB / 0.6989 GB, free: 7.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006183/0.4523, allocations: 1.421 MB / 0.7003 GB, free: 5.777 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4523, allocations: 1.156 kB / 0.7003 GB, free: 5.777 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002598/0.4526, allocations: 321.9 kB / 0.7006 GB, free: 5.57 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.646e-05/0.4527, allocations: 118.4 kB / 0.7007 GB, free: 5.461 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.4527, allocations: 4.906 kB / 0.7007 GB, free: 5.461 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.4529, allocations: 11.91 kB / 0.7007 GB, free: 5.461 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.69e-05/0.4529, allocations: 18 kB / 0.7008 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.4529, allocations: 8.5 kB / 0.7008 GB, free: 5.453 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001561/0.4531, allocations: 193.8 kB / 0.701 GB, free: 5.352 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4531, allocations: 1.156 kB / 0.701 GB, free: 5.352 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003607/0.4535, allocations: 75.09 kB / 0.701 GB, free: 5.336 MB / 494.1 MB 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 8.255e-05/0.4536, allocations: 100.3 kB / 0.7011 GB, free: 5.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003761/0.454, allocations: 275.3 kB / 0.7014 GB, free: 5.098 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.454, allocations: 1.688 kB / 0.7014 GB, free: 5.098 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.4541, allocations: 185.4 kB / 0.7016 GB, free: 4.969 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.4546, allocations: 56.02 kB / 0.7016 GB, free: 4.949 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006898/0.4553, allocations: 0.5354 MB / 0.7021 GB, free: 4.605 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002225/0.4555, allocations: 0.7896 MB / 0.7029 GB, free: 3.898 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.4557, allocations: 42.55 kB / 0.703 GB, free: 3.895 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.214e-05/0.4557, allocations: 20.19 kB / 0.703 GB, free: 3.887 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4557, allocations: 4 kB / 0.703 GB, free: 3.883 MB / 494.1 MB Notification: Performance of Templates: time 0.005828/0.4615, allocations: 2.71 MB / 0.7056 GB, free: 3.711 MB / 494.1 MB 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)