Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001452/0.001452, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001705/0.001706, allocations: 194.5 kB / 16.53 MB, free: 6.699 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.41/1.41, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.889/2.889, allocations: 472.6 MB / 0.7451 GB, free: 4.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001309, allocations: 64.66 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3329, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004924/0.3379, allocations: 3.075 MB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00233/0.3403, allocations: 1.321 MB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.3404, allocations: 7.938 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.3415, allocations: 334.8 kB / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003393/0.3419, allocations: 155.2 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.3422, allocations: 127.7 kB / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.3425, allocations: 303 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000468/0.343, allocations: 240.6 kB / 1.074 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.3432, allocations: 123.5 kB / 1.074 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.3435, allocations: 139.5 kB / 1.074 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.61e-05/0.3435, allocations: 19.94 kB / 1.074 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003018/0.3439, allocations: 167.6 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.344, allocations: 83.78 kB / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.3441, allocations: 107.5 kB / 1.074 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004137/0.3445, allocations: 334.9 kB / 1.075 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3446, allocations: 0 / 1.075 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3446, allocations: 0 / 1.075 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.3446, allocations: 0 / 1.075 GB, free: 3.879 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.0008619/0.3454, allocations: 0.5185 MB / 1.075 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3455, allocations: 12.03 kB / 1.075 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006016/0.3461, allocations: 76.58 kB / 1.075 GB, free: 3.223 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.3464, allocations: 242.2 kB / 1.075 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.3464, allocations: 8.75 kB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.3465, allocations: 24.38 kB / 1.075 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004376/0.3469, allocations: 303.3 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3469, allocations: 0 / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.012e-05/0.347, allocations: 12 kB / 1.076 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.43e-05/0.347, allocations: 12.38 kB / 1.076 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.3473, allocations: 200.9 kB / 1.076 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001492/0.3488, allocations: 1.456 MB / 1.077 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.3491, allocations: 183.7 kB / 1.077 GB, free: 0.5508 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.077e-05/0.3492, allocations: 36.84 kB / 1.077 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.365e-06/0.3492, allocations: 0 / 1.077 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.3492, allocations: 34.55 kB / 1.078 GB, free: 480 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 2.755e-06/0.3492, allocations: 0 / 1.078 GB, free: 480 kB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005112/0.3497, allocations: 239.3 kB / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.3498, allocations: 51.41 kB / 1.078 GB, free: 148 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.35, allocations: 203 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.35, allocations: 29.7 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.3502, allocations: 163.6 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.3502, allocations: 31.55 kB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.3503, allocations: 29.72 kB / 1.078 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3504, allocations: 330.8 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.407e-05/0.3505, allocations: 35.97 kB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.3506, allocations: 98.12 kB / 1.079 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.3508, allocations: 152.3 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3508, allocations: 4 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003096/0.3511, allocations: 186.1 kB / 1.079 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.3512, allocations: 8 kB / 1.079 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.3512, allocations: 0 / 1.079 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002303/0.3514, allocations: 29.12 kB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.3516, allocations: 35.98 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001324/0.3529, allocations: 1.418 MB / 1.08 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.353, allocations: 19.84 kB / 1.08 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.3531, allocations: 7.984 kB / 1.08 GB, free: 13.14 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.000178/0.3533, allocations: 146.9 kB / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.947e-05/0.3533, allocations: 19.91 kB / 1.081 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.81e-05/0.3533, allocations: 13.41 kB / 1.081 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3533, allocations: 3.984 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.3534, allocations: 0 / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.3534, allocations: 4 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005284/0.3539, allocations: 443.2 kB / 1.081 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.3539, allocations: 0 / 1.081 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.134e-05/0.354, allocations: 15.98 kB / 1.081 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.668e-05/0.3541, allocations: 24.78 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.3541, allocations: 8 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.3551, allocations: 1.414 MB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3551, allocations: 3.938 kB / 1.083 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002185/0.3553, allocations: 212.2 kB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.726e-05/0.3554, allocations: 100.9 kB / 1.083 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.3555, allocations: 7.984 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.3556, allocations: 7.938 kB / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.01e-05/0.3556, allocations: 4 kB / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.3556, allocations: 4 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001213/0.3557, allocations: 144.3 kB / 1.083 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3557, allocations: 4 kB / 1.083 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003644/0.3561, allocations: 51.84 kB / 1.083 GB, free: 10.29 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.0001157/0.3562, allocations: 107.3 kB / 1.083 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003757/0.3566, allocations: 210.4 kB / 1.083 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3566, allocations: 0 / 1.083 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.3568, allocations: 147.2 kB / 1.083 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003725/0.3572, allocations: 35.75 kB / 1.084 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006281/0.3578, allocations: 358.5 kB / 1.084 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.3581, allocations: 0.7514 MB / 1.085 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.353e-05/0.3582, allocations: 26.16 kB / 1.085 GB, free: 8.59 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.353e-05/0.3583, allocations: 15.44 kB / 1.085 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.3583, allocations: 0 / 1.085 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of Templates: time 0.004901/0.3632, allocations: 1.743 MB / 1.086 GB, free: 6.855 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)