Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001135/0.001139, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001164/0.001164, allocations: 192.4 kB / 16.25 MB, free: 6.617 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.359/1.359, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.835/2.835, allocations: 472.6 MB / 0.7448 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 58.45 kB / 0.9115 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3367, allocations: 159.9 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.007356/0.3441, allocations: 3.883 MB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002947/0.3471, allocations: 1.714 MB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000292/0.3474, allocations: 4 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001397/0.3488, allocations: 478.5 kB / 1.074 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005622/0.3494, allocations: 207.1 kB / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005822/0.35, allocations: 187.6 kB / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004965/0.3505, allocations: 478.3 kB / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00064/0.3511, allocations: 413.3 kB / 1.075 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.3513, allocations: 187.4 kB / 1.075 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003853/0.3517, allocations: 227.1 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.49e-05/0.3518, allocations: 28 kB / 1.075 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004233/0.3522, allocations: 239.5 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.3524, allocations: 127.7 kB / 1.076 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.3526, allocations: 171.1 kB / 1.076 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006067/0.3532, allocations: 0.5141 MB / 1.076 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3532, allocations: 0 / 1.076 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3532, allocations: 0 / 1.076 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.708e-06/0.3532, allocations: 0 / 1.076 GB, free: 1.961 MB / 0.8262 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.001151/0.3544, allocations: 0.6354 MB / 1.077 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3544, allocations: 12.03 kB / 1.077 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009094/0.3554, allocations: 140.3 kB / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.3557, allocations: 279.7 kB / 1.077 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.3558, allocations: 25.02 kB / 1.077 GB, free: 0.793 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.369e-05/0.3558, allocations: 32.38 kB / 1.077 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000659/0.3565, allocations: 463.9 kB / 1.078 GB, free: 276 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.3565, allocations: 0 / 1.078 GB, free: 276 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.3565, allocations: 12 kB / 1.078 GB, free: 264 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.571e-05/0.3566, allocations: 32.55 kB / 1.078 GB, free: 232 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004865/0.3571, allocations: 325.9 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002173/0.3593, allocations: 2.193 MB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003836/0.3597, allocations: 251.8 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/0.3599, allocations: 108.8 kB / 1.081 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.399e-05/0.36, allocations: 0 / 1.081 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.36, allocations: 38.56 kB / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 9.52e-07/0.36, allocations: 0 / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.0006852/0.3607, allocations: 307 kB / 1.081 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.071e-05/0.3608, allocations: 55.41 kB / 1.081 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003121/0.3611, allocations: 262.5 kB / 1.081 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.3611, allocations: 37.7 kB / 1.081 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.3613, allocations: 203.8 kB / 1.081 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.351e-05/0.3614, allocations: 55.2 kB / 1.082 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.118e-05/0.3614, allocations: 45.94 kB / 1.082 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.3616, allocations: 334.8 kB / 1.082 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.19e-05/0.3617, allocations: 52.44 kB / 1.082 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.3618, allocations: 148 kB / 1.082 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.3621, allocations: 217.6 kB / 1.082 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3621, allocations: 4 kB / 1.082 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004031/0.3625, allocations: 265.8 kB / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.3626, allocations: 8 kB / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3626, allocations: 384 / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001829/0.3628, allocations: 32.84 kB / 1.083 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.363, allocations: 47.91 kB / 1.083 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.3641, allocations: 1.422 MB / 1.084 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001583/0.3643, allocations: 27.69 kB / 1.084 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.3643, allocations: 8 kB / 1.084 GB, free: 9.281 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.000193/0.3645, allocations: 177.7 kB / 1.084 GB, free: 9.098 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.888e-05/0.3646, allocations: 23.72 kB / 1.084 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.333e-05/0.3647, allocations: 33.92 kB / 1.084 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.3647, allocations: 3.938 kB / 1.084 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3647, allocations: 0 / 1.084 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3647, allocations: 0 / 1.084 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009082/0.3656, allocations: 0.7064 MB / 1.085 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.3656, allocations: 8 kB / 1.085 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.742e-05/0.3657, allocations: 16 kB / 1.085 GB, free: 8.219 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-05/0.3658, allocations: 36.95 kB / 1.085 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.3658, allocations: 4 kB / 1.085 GB, free: 8.176 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.3669, allocations: 1.422 MB / 1.086 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3669, allocations: 3.938 kB / 1.086 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003587/0.3673, allocations: 318.8 kB / 1.087 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.3674, allocations: 116.7 kB / 1.087 GB, free: 6.133 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.3674, allocations: 8 kB / 1.087 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.3676, allocations: 8 kB / 1.087 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.3677, allocations: 23.92 kB / 1.087 GB, free: 6.094 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.3677, allocations: 7.938 kB / 1.087 GB, free: 6.086 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001918/0.3679, allocations: 190 kB / 1.087 GB, free: 5.898 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3679, allocations: 0 / 1.087 GB, free: 5.898 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004065/0.3683, allocations: 79.75 kB / 1.087 GB, free: 5.82 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.0001535/0.3684, allocations: 107.2 kB / 1.087 GB, free: 5.703 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005282/0.369, allocations: 274.4 kB / 1.088 GB, free: 5.422 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.369, allocations: 0 / 1.088 GB, free: 5.422 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.3692, allocations: 183.6 kB / 1.088 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005024/0.3697, allocations: 60.88 kB / 1.088 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009659/0.3707, allocations: 0.6568 MB / 1.088 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000462/0.3712, allocations: 0.7909 MB / 1.089 GB, free: 3.652 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001517/0.3713, allocations: 42.27 kB / 1.089 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.859e-05/0.3714, allocations: 19.44 kB / 1.089 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of SimCode: time 3.61e-07/0.3714, allocations: 4 kB / 1.089 GB, free: 3.586 MB / 0.8419 GB Notification: Performance of Templates: time 0.006431/0.3778, allocations: 2.689 MB / 1.092 GB, free: 0.9297 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)