Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008776/0.0008778, allocations: 91.22 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.006344/0.006345, allocations: 172.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.471/1.471, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.902/2.902, allocations: 473.4 MB / 0.7469 GB, free: 6.094 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003734/0.0003734, allocations: 8.312 kB / 0.9158 GB, free: 33.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3664, allocations: 162.2 MB / 1.074 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003786/0.3702, allocations: 2.766 MB / 1.077 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002005/0.3723, allocations: 1.29 MB / 1.078 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.3724, allocations: 7.938 kB / 1.078 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.3726, allocations: 43.7 kB / 1.078 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004022/0.373, allocations: 139.4 kB / 1.078 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.3734, allocations: 119.7 kB / 1.078 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004501/0.3738, allocations: 446.7 kB / 1.079 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003423/0.3742, allocations: 229.4 kB / 1.079 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.3743, allocations: 99.62 kB / 1.079 GB, free: 2.395 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002897/0.3746, allocations: 131.5 kB / 1.079 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.787e-05/0.3747, allocations: 8 kB / 1.079 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003583/0.375, allocations: 207.5 kB / 1.079 GB, free: 2.055 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.908e-05/0.3751, allocations: 67.86 kB / 1.08 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.3752, allocations: 125.2 kB / 1.08 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004258/0.3757, allocations: 335.1 kB / 1.08 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3757, allocations: 0 / 1.08 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.807e-06/0.3757, allocations: 3.938 kB / 1.08 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.3757, allocations: 7.938 kB / 1.08 GB, free: 1.52 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000782/0.3765, allocations: 491.1 kB / 1.08 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.3766, allocations: 12.03 kB / 1.08 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006354/0.3772, allocations: 80.67 kB / 1.081 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/0.3775, allocations: 237.7 kB / 1.081 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.3776, allocations: 20.73 kB / 1.081 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.3776, allocations: 16.38 kB / 1.081 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004636/0.3781, allocations: 303.3 kB / 1.081 GB, free: 280 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3781, allocations: 0 / 1.081 GB, free: 280 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.3781, allocations: 12 kB / 1.081 GB, free: 268 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.811e-05/0.3782, allocations: 20.36 kB / 1.081 GB, free: 248 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003187/0.3785, allocations: 196.9 kB / 1.081 GB, free: 52 kB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.3801, allocations: 1.46 MB / 1.083 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002532/0.3804, allocations: 179.7 kB / 1.083 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.073e-05/0.3805, allocations: 37 kB / 1.083 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-06/0.3805, allocations: 0 / 1.083 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.3805, allocations: 38.61 kB / 1.083 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.3805, allocations: 0 / 1.083 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004586/0.381, allocations: 223.5 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.381, allocations: 55.39 kB / 1.083 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.3812, allocations: 202.8 kB / 1.083 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.3812, allocations: 25.7 kB / 1.083 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.803e-05/0.3813, allocations: 167.6 kB / 1.084 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.3814, allocations: 27.66 kB / 1.084 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.3814, allocations: 21.7 kB / 1.084 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.957e-05/0.3815, allocations: 326.8 kB / 1.084 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.03e-05/0.3816, allocations: 31.98 kB / 1.084 GB, free: 13 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001083/0.3817, allocations: 109.8 kB / 1.084 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.3819, allocations: 148.4 kB / 1.084 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3819, allocations: 0 / 1.084 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003114/0.3822, allocations: 198 kB / 1.084 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3822, allocations: 4.281 kB / 1.084 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.3822, allocations: 8 kB / 1.084 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001682/0.3824, allocations: 24.84 kB / 1.084 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.3825, allocations: 27.92 kB / 1.084 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/0.3837, allocations: 1.323 MB / 1.086 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.3838, allocations: 15.84 kB / 1.086 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.3838, allocations: 8.312 kB / 1.086 GB, free: 10.93 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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.0001414/0.384, allocations: 145.8 kB / 1.086 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.058e-05/0.384, allocations: 19.84 kB / 1.086 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.204e-05/0.3841, allocations: 21.41 kB / 1.086 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3841, allocations: 0 / 1.086 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.3841, allocations: 0 / 1.086 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3841, allocations: 3.984 kB / 1.086 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005174/0.3846, allocations: 443.2 kB / 1.086 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3846, allocations: 0 / 1.086 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.145e-05/0.3847, allocations: 15.92 kB / 1.086 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.893e-05/0.3847, allocations: 24.84 kB / 1.086 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.3848, allocations: 0 / 1.086 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009516/0.3857, allocations: 1.327 MB / 1.088 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3857, allocations: 3.938 kB / 1.088 GB, free: 8.746 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002196/0.386, allocations: 204.3 kB / 1.088 GB, free: 8.527 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.315e-05/0.386, allocations: 100.9 kB / 1.088 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.3861, allocations: 3.938 kB / 1.088 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.3862, allocations: 4 kB / 1.088 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.41e-05/0.3862, allocations: 16.08 kB / 1.088 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.3862, allocations: 0 / 1.088 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000127/0.3864, allocations: 152.8 kB / 1.088 GB, free: 8.238 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.994e-06/0.3864, allocations: 0 / 1.088 GB, free: 8.238 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00035/0.3867, allocations: 55.78 kB / 1.088 GB, free: 8.184 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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.0001217/0.3869, allocations: 96.38 kB / 1.088 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003898/0.3873, allocations: 210.5 kB / 1.089 GB, free: 7.859 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3873, allocations: 0 / 1.089 GB, free: 7.859 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.3875, allocations: 150.9 kB / 1.089 GB, free: 7.699 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.3879, allocations: 32.02 kB / 1.089 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006617/0.3885, allocations: 452 kB / 1.089 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.3889, allocations: 0.74 MB / 1.09 GB, free: 6.441 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.711e-05/0.389, allocations: 25.53 kB / 1.09 GB, free: 6.418 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.48e-05/0.389, allocations: 11.44 kB / 1.09 GB, free: 6.406 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.389, allocations: 0 / 1.09 GB, free: 6.406 MB / 0.8419 GB Notification: Performance of Templates: time 0.005048/0.3941, allocations: 1.678 MB / 1.092 GB, free: 4.75 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_1.6_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_1.6_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_1.6_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)