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 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="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.00111/0.00111, allocations: 108 kB / 15.6 MB, free: 132 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.001308/0.001308, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.886/2.886, allocations: 472.7 MB / 0.7452 GB, free: 4.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 67.53 kB / 0.9121 GB, free: 33.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3384, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005426/0.3438, allocations: 3.081 MB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00227/0.3461, allocations: 1.317 MB / 1.073 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.3464, allocations: 7.938 kB / 1.073 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001177/0.3475, allocations: 334.7 kB / 1.073 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005534/0.3481, allocations: 147.3 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004466/0.3486, allocations: 138.8 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004002/0.349, allocations: 310.9 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004627/0.3494, allocations: 236.6 kB / 1.074 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.3497, allocations: 119.6 kB / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003232/0.35, allocations: 143.4 kB / 1.074 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.609e-05/0.3501, allocations: 16 kB / 1.074 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004349/0.3505, allocations: 171.6 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.3506, allocations: 79.8 kB / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.3508, allocations: 107.5 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004754/0.3512, allocations: 334.9 kB / 1.075 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3513, allocations: 0 / 1.075 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3513, allocations: 0 / 1.075 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.122e-05/0.3513, allocations: 0 / 1.075 GB, free: 3.891 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.0009486/0.3522, allocations: 0.5147 MB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.3523, allocations: 12.03 kB / 1.075 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006703/0.353, allocations: 76.58 kB / 1.075 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003387/0.3533, allocations: 242.4 kB / 1.075 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.3533, allocations: 16.69 kB / 1.075 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.3534, allocations: 16.38 kB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004383/0.3538, allocations: 307.3 kB / 1.076 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.3539, allocations: 0 / 1.076 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.59e-05/0.3539, allocations: 11.94 kB / 1.076 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.572e-05/0.3539, allocations: 16.36 kB / 1.076 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003086/0.3542, allocations: 197 kB / 1.076 GB, free: 2.395 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.3559, allocations: 1.46 MB / 1.077 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002726/0.3562, allocations: 179.7 kB / 1.078 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.025e-05/0.3562, allocations: 32.84 kB / 1.078 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.3563, allocations: 7.938 kB / 1.078 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.3563, allocations: 34.5 kB / 1.078 GB, free: 492 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3563, allocations: 0 / 1.078 GB, free: 492 kB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005158/0.3568, allocations: 227.4 kB / 1.078 GB, free: 236 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.3569, allocations: 55.34 kB / 1.078 GB, free: 168 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.3571, allocations: 206.2 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.3571, allocations: 25.7 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.404e-05/0.3572, allocations: 167.6 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.3572, allocations: 19.66 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.715e-05/0.3573, allocations: 37.7 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3574, allocations: 326.8 kB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.833e-05/0.3575, allocations: 39.92 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.3576, allocations: 102.1 kB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.3578, allocations: 148.6 kB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3578, allocations: 0 / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003137/0.3581, allocations: 194.1 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.3581, allocations: 8 kB / 1.079 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3582, allocations: 0 / 1.079 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001667/0.3583, allocations: 24.78 kB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.3585, allocations: 31.98 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/0.3596, allocations: 1.423 MB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.3598, allocations: 11.84 kB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.3598, allocations: 12.05 kB / 1.081 GB, free: 13.16 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.0001506/0.3599, allocations: 152.9 kB / 1.081 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.859e-05/0.36, allocations: 19.8 kB / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.244e-05/0.36, allocations: 17.5 kB / 1.081 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.36, allocations: 3.938 kB / 1.081 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.36, allocations: 0 / 1.081 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3601, allocations: 4.062 kB / 1.081 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005314/0.3606, allocations: 447.2 kB / 1.081 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3606, allocations: 0 / 1.081 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.089e-05/0.3607, allocations: 8 kB / 1.081 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.397e-05/0.3607, allocations: 20.84 kB / 1.081 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.3608, allocations: 0 / 1.081 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.3619, allocations: 1.43 MB / 1.083 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3619, allocations: 0 / 1.083 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.3621, allocations: 216.1 kB / 1.083 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.275e-05/0.3622, allocations: 96.91 kB / 1.083 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.3622, allocations: 4 kB / 1.083 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.3623, allocations: 4.062 kB / 1.083 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.996e-05/0.3624, allocations: 11.92 kB / 1.083 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.3624, allocations: 8 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001317/0.3625, allocations: 144.9 kB / 1.083 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3625, allocations: 0 / 1.083 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003442/0.3629, allocations: 55.84 kB / 1.083 GB, free: 10.3 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.0001019/0.363, allocations: 95.25 kB / 1.083 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003627/0.3633, allocations: 218.5 kB / 1.083 GB, free: 9.973 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3634, allocations: 0 / 1.083 GB, free: 9.973 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.3635, allocations: 151.1 kB / 1.084 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003715/0.3639, allocations: 30.56 kB / 1.084 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006806/0.3646, allocations: 359.1 kB / 1.084 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.365, allocations: 0.7475 MB / 1.085 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.987e-05/0.3651, allocations: 29.52 kB / 1.085 GB, free: 8.609 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.138e-05/0.3651, allocations: 15.44 kB / 1.085 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3651, allocations: 192 / 1.085 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of Templates: time 0.004756/0.3699, allocations: 1.74 MB / 1.086 GB, free: 6.871 MB / 0.8419 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