Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.0009554/0.0009554, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.005616/0.005616, allocations: 171.2 kB / 16.27 MB, free: 6.648 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.423/1.423, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.863/2.863, allocations: 473.4 MB / 0.7469 GB, free: 6.09 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003614, allocations: 8.312 kB / 0.9158 GB, free: 33.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3276, allocations: 162.2 MB / 1.074 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004299/0.3319, allocations: 3.494 MB / 1.078 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002612/0.3345, allocations: 1.702 MB / 1.079 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.3347, allocations: 4 kB / 1.079 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002249/0.3349, allocations: 59.5 kB / 1.079 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004941/0.3354, allocations: 211.1 kB / 1.079 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004779/0.3359, allocations: 207.5 kB / 1.08 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005912/0.3365, allocations: 0.6544 MB / 1.08 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004095/0.337, allocations: 319.5 kB / 1.081 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.3371, allocations: 155.3 kB / 1.081 GB, free: 0.6797 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003752/0.3375, allocations: 203.3 kB / 1.081 GB, free: 492 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.299e-05/0.3376, allocations: 16 kB / 1.081 GB, free: 476 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004254/0.338, allocations: 303.3 kB / 1.081 GB, free: 172 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.3381, allocations: 111.6 kB / 1.081 GB, free: 60 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.3383, allocations: 181 kB / 1.082 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005241/0.3388, allocations: 0.4946 MB / 1.082 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3388, allocations: 0 / 1.082 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3389, allocations: 0 / 1.082 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.3389, allocations: 0 / 1.082 GB, free: 15.38 MB / 0.8419 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.0008843/0.3398, allocations: 0.5732 MB / 1.083 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.3398, allocations: 8.031 kB / 1.083 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009032/0.3407, allocations: 144.4 kB / 1.083 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003891/0.3411, allocations: 283.7 kB / 1.083 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.3412, allocations: 25.02 kB / 1.083 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.44e-05/0.3412, allocations: 28.38 kB / 1.083 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006844/0.3419, allocations: 467.8 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3419, allocations: 0 / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.802e-05/0.342, allocations: 12 kB / 1.084 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.965e-05/0.342, allocations: 32.55 kB / 1.084 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004838/0.3425, allocations: 321.9 kB / 1.084 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002047/0.3446, allocations: 2.193 MB / 1.086 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.3449, allocations: 251.8 kB / 1.086 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.3452, allocations: 111.9 kB / 1.086 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/0.3452, allocations: 4 kB / 1.086 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.3453, allocations: 42.62 kB / 1.086 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.3453, allocations: 0 / 1.086 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.0006041/0.3459, allocations: 299.5 kB / 1.087 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.167e-05/0.3459, allocations: 59.34 kB / 1.087 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002684/0.3462, allocations: 266.6 kB / 1.087 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.3462, allocations: 29.7 kB / 1.087 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.3464, allocations: 207.8 kB / 1.087 GB, free: 9.641 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.027e-05/0.3464, allocations: 51.3 kB / 1.087 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.381e-05/0.3465, allocations: 25.7 kB / 1.087 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3466, allocations: 334.9 kB / 1.088 GB, free: 9.223 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-05/0.3467, allocations: 64.36 kB / 1.088 GB, free: 9.156 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.3468, allocations: 148 kB / 1.088 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.3471, allocations: 218.9 kB / 1.088 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3471, allocations: 0 / 1.088 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004852/0.3476, allocations: 265.9 kB / 1.088 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.3477, allocations: 8 kB / 1.088 GB, free: 8.441 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3477, allocations: 4 kB / 1.088 GB, free: 8.438 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.3479, allocations: 29.22 kB / 1.088 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.348, allocations: 51.91 kB / 1.088 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/0.3491, allocations: 1.319 MB / 1.09 GB, free: 6.906 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.3493, allocations: 35.61 kB / 1.09 GB, free: 6.871 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.3493, allocations: 8 kB / 1.09 GB, free: 6.863 MB / 0.8419 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.0001787/0.3495, allocations: 161.8 kB / 1.09 GB, free: 6.695 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.193e-05/0.3495, allocations: 31.64 kB / 1.09 GB, free: 6.664 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.811e-05/0.3496, allocations: 21.84 kB / 1.09 GB, free: 6.645 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3496, allocations: 4 kB / 1.09 GB, free: 6.641 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3496, allocations: 8.078 kB / 1.09 GB, free: 6.633 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3496, allocations: 3.984 kB / 1.09 GB, free: 6.629 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009235/0.3506, allocations: 0.6986 MB / 1.091 GB, free: 5.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3506, allocations: 4 kB / 1.091 GB, free: 5.836 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.529e-05/0.3507, allocations: 23.92 kB / 1.091 GB, free: 5.812 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.181e-05/0.3507, allocations: 24.84 kB / 1.091 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.3508, allocations: 4 kB / 1.091 GB, free: 5.781 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009176/0.3517, allocations: 1.327 MB / 1.092 GB, free: 4.324 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.3517, allocations: 4.031 kB / 1.092 GB, free: 4.32 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003311/0.352, allocations: 319.5 kB / 1.092 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.3522, allocations: 112.8 kB / 1.092 GB, free: 3.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.873e-05/0.3522, allocations: 11.92 kB / 1.092 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.3524, allocations: 16 kB / 1.092 GB, free: 3.816 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.865e-05/0.3524, allocations: 11.92 kB / 1.092 GB, free: 3.805 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.3524, allocations: 8 kB / 1.092 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001827/0.3526, allocations: 194 kB / 1.093 GB, free: 3.605 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3526, allocations: 0 / 1.093 GB, free: 3.605 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003934/0.353, allocations: 79.72 kB / 1.093 GB, free: 3.527 MB / 0.8419 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.000126/0.3531, allocations: 103.9 kB / 1.093 GB, free: 3.414 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004658/0.3536, allocations: 266.3 kB / 1.093 GB, free: 3.141 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.3536, allocations: 0.75 kB / 1.093 GB, free: 3.141 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002131/0.3539, allocations: 194.6 kB / 1.093 GB, free: 2.938 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005312/0.3544, allocations: 49.28 kB / 1.093 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009076/0.3553, allocations: 0.6697 MB / 1.094 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003648/0.3557, allocations: 0.7912 MB / 1.095 GB, free: 1.359 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000138/0.3558, allocations: 42.27 kB / 1.095 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.843e-05/0.3559, allocations: 23.42 kB / 1.095 GB, free: 1.293 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.3559, allocations: 0 / 1.095 GB, free: 1.293 MB / 0.8419 GB Notification: Performance of Templates: time 0.006335/0.3622, allocations: 2.557 MB / 1.097 GB, free: 14.76 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)