Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_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.0009798/0.0009797, allocations: 97.33 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.009946/0.009947, allocations: 172.2 kB / 16.27 MB, free: 6.652 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.479/1.479, 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 11.0.1-master/package.mo): time 2.729/2.729, allocations: 462.7 MB / 0.7364 GB, free: 256 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003544, allocations: 8.188 kB / 0.9028 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3443, allocations: 159.6 MB / 1.059 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004152/0.3485, allocations: 2.768 MB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002534/0.351, allocations: 1.305 MB / 1.063 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/0.3513, allocations: 4 kB / 1.063 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002299/0.3515, allocations: 39.7 kB / 1.063 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006313/0.3522, allocations: 131.4 kB / 1.063 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005535/0.3528, allocations: 127.7 kB / 1.063 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000549/0.3533, allocations: 438.7 kB / 1.063 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003946/0.3537, allocations: 241.4 kB / 1.064 GB, free: 384 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.3539, allocations: 95.64 kB / 1.064 GB, free: 288 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003707/0.3543, allocations: 131.5 kB / 1.064 GB, free: 156 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.3543, allocations: 11.94 kB / 1.064 GB, free: 144 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004415/0.3548, allocations: 211.5 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.3549, allocations: 67.81 kB / 1.064 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.355, allocations: 129.2 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005151/0.3556, allocations: 331.2 kB / 1.065 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3556, allocations: 0 / 1.065 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.314e-06/0.3556, allocations: 0 / 1.065 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.054e-05/0.3556, allocations: 0 / 1.065 GB, free: 15.41 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.0008224/0.3564, allocations: 491.1 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3565, allocations: 12.03 kB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006478/0.3571, allocations: 80.58 kB / 1.065 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003538/0.3575, allocations: 248.9 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.3575, allocations: 16.75 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.3576, allocations: 16.38 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005216/0.3581, allocations: 295.6 kB / 1.066 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.3581, allocations: 3.938 kB / 1.066 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.3582, allocations: 7.984 kB / 1.066 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/0.3582, allocations: 16.38 kB / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000343/0.3585, allocations: 204.9 kB / 1.066 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.3602, allocations: 1.46 MB / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002935/0.3605, allocations: 171.7 kB / 1.067 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.593e-05/0.3606, allocations: 32.84 kB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.358e-06/0.3606, allocations: 0 / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.3606, allocations: 38.48 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.3606, allocations: 0 / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005045/0.3612, allocations: 231.6 kB / 1.068 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.3612, allocations: 51.41 kB / 1.068 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.3614, allocations: 203.4 kB / 1.068 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.3615, allocations: 29.7 kB / 1.068 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.3616, allocations: 159.6 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.065e-05/0.3616, allocations: 27.61 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-05/0.3617, allocations: 21.66 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3618, allocations: 334.8 kB / 1.069 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.836e-05/0.3619, allocations: 31.97 kB / 1.069 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.362, allocations: 96.58 kB / 1.069 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.3622, allocations: 152.4 kB / 1.069 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3622, allocations: 3.938 kB / 1.069 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003293/0.3626, allocations: 186.2 kB / 1.069 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.3626, allocations: 4 kB / 1.069 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.3626, allocations: 4.062 kB / 1.069 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.3628, allocations: 37.06 kB / 1.069 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.3629, allocations: 23.98 kB / 1.069 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.3641, allocations: 1.327 MB / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.3643, allocations: 19.75 kB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.3643, allocations: 8 kB / 1.07 GB, free: 8.832 MB / 0.8262 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.0001467/0.3644, allocations: 147.3 kB / 1.07 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.421e-05/0.3645, allocations: 15.84 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/0.3645, allocations: 21.39 kB / 1.071 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.3645, allocations: 4.094 kB / 1.071 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.3646, allocations: 0 / 1.071 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.3646, allocations: 0 / 1.071 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000633/0.3652, allocations: 455.1 kB / 1.071 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.3652, allocations: 3.984 kB / 1.071 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.035e-05/0.3653, allocations: 8 kB / 1.071 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001006/0.3654, allocations: 20.84 kB / 1.071 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.3654, allocations: 4 kB / 1.071 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.3666, allocations: 1.304 MB / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.3666, allocations: 12.09 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.3668, allocations: 212.5 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.077e-05/0.3669, allocations: 96.91 kB / 1.073 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/0.367, allocations: 3.938 kB / 1.073 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.3671, allocations: 11.98 kB / 1.073 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.534e-05/0.3671, allocations: 4 kB / 1.073 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.3671, allocations: 4 kB / 1.073 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001324/0.3673, allocations: 148.3 kB / 1.073 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3673, allocations: 0 / 1.073 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003379/0.3676, allocations: 51.84 kB / 1.073 GB, free: 6.094 MB / 0.8262 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.0001363/0.3678, allocations: 95.34 kB / 1.073 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003758/0.3681, allocations: 214.7 kB / 1.073 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3682, allocations: 0 / 1.073 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.3683, allocations: 154.7 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.3687, allocations: 23.98 kB / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007241/0.3695, allocations: 455.7 kB / 1.074 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.3699, allocations: 0.7478 MB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000105/0.37, allocations: 25.53 kB / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.727e-05/0.37, allocations: 11.44 kB / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of SimCode: time 3.5e-07/0.37, allocations: 4 kB / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of Templates: time 0.005051/0.3751, allocations: 1.674 MB / 1.076 GB, free: 2.648 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches