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.004613/0.004613, allocations: 102.4 kB / 15.73 MB, free: 6.051 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.001146/0.001146, allocations: 199.1 kB / 16.68 MB, free: 5.969 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.739/2.739, allocations: 461.9 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 76.11 kB / 1.054 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.343, allocations: 157.4 MB / 1.208 GB, free: 9.672 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004625/0.3477, allocations: 3.071 MB / 1.211 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002334/0.3501, allocations: 1.328 MB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.3502, allocations: 7.938 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.3514, allocations: 333.6 kB / 1.212 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003668/0.3518, allocations: 147.2 kB / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.3521, allocations: 135.7 kB / 1.213 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003702/0.3525, allocations: 302.9 kB / 1.213 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004508/0.353, allocations: 236.3 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.3531, allocations: 119.6 kB / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002946/0.3534, allocations: 143.5 kB / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.3535, allocations: 20 kB / 1.213 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002748/0.3537, allocations: 167.6 kB / 1.214 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.162e-05/0.3538, allocations: 79.8 kB / 1.214 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.3539, allocations: 111.5 kB / 1.214 GB, free: 3.477 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003942/0.3543, allocations: 342.9 kB / 1.214 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3544, allocations: 0 / 1.214 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.657e-06/0.3544, allocations: 0 / 1.214 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.084e-06/0.3544, allocations: 3.938 kB / 1.214 GB, free: 3.137 MB / 0.9669 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.0007832/0.3552, allocations: 0.5107 MB / 1.215 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3552, allocations: 12.62 kB / 1.215 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005596/0.3558, allocations: 76.58 kB / 1.215 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/0.3561, allocations: 244 kB / 1.215 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.3561, allocations: 16.75 kB / 1.215 GB, free: 2.195 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.216e-05/0.3562, allocations: 24.36 kB / 1.215 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004435/0.3566, allocations: 299.5 kB / 1.215 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.3566, allocations: 3.984 kB / 1.215 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/0.3567, allocations: 8 kB / 1.215 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.851e-05/0.3567, allocations: 20.36 kB / 1.215 GB, free: 1.828 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002932/0.357, allocations: 197 kB / 1.215 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.3585, allocations: 1.456 MB / 1.217 GB, free: 16 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.3587, allocations: 179.7 kB / 1.217 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.586e-05/0.3588, allocations: 28.84 kB / 1.217 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.3588, allocations: 4 kB / 1.217 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.3589, allocations: 38.56 kB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.3589, allocations: 3.938 kB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004632/0.3593, allocations: 215.5 kB / 1.217 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.117e-05/0.3594, allocations: 55.41 kB / 1.217 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.3596, allocations: 210.6 kB / 1.218 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.3596, allocations: 25.7 kB / 1.218 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.114e-05/0.3597, allocations: 167.8 kB / 1.218 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.3597, allocations: 27.64 kB / 1.218 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.3598, allocations: 37.7 kB / 1.218 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3599, allocations: 326.8 kB / 1.218 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.299e-05/0.3599, allocations: 35.98 kB / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.3601, allocations: 108.4 kB / 1.218 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.3602, allocations: 148.4 kB / 1.218 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.3602, allocations: 4 kB / 1.218 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002834/0.3605, allocations: 186.4 kB / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.3606, allocations: 11.98 kB / 1.219 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.3606, allocations: 0 / 1.219 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001762/0.3607, allocations: 24.84 kB / 1.219 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.3609, allocations: 27.94 kB / 1.219 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009978/0.3619, allocations: 1.422 MB / 1.22 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.362, allocations: 15.84 kB / 1.22 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.362, allocations: 8 kB / 1.22 GB, free: 12.41 MB / 0.9825 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.0001225/0.3622, allocations: 148 kB / 1.22 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-05/0.3622, allocations: 19.75 kB / 1.22 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.937e-05/0.3622, allocations: 21.39 kB / 1.22 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.3622, allocations: 0 / 1.22 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.3622, allocations: 0 / 1.22 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3623, allocations: 0 / 1.22 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004796/0.3627, allocations: 451.1 kB / 1.221 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.3628, allocations: 8.062 kB / 1.221 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.954e-05/0.3628, allocations: 11.94 kB / 1.221 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-05/0.3629, allocations: 20.84 kB / 1.221 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.3629, allocations: 0 / 1.221 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008737/0.3638, allocations: 1.41 MB / 1.222 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3638, allocations: 0 / 1.222 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002082/0.364, allocations: 220.2 kB / 1.222 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.805e-05/0.3641, allocations: 96.91 kB / 1.222 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.3641, allocations: 4 kB / 1.222 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.3642, allocations: 0 / 1.222 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.581e-05/0.3643, allocations: 4 kB / 1.222 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.3643, allocations: 11.98 kB / 1.222 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001078/0.3644, allocations: 140.2 kB / 1.223 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3644, allocations: 0 / 1.223 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00034/0.3647, allocations: 51.94 kB / 1.223 GB, free: 9.582 MB / 0.9825 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.0001065/0.3649, allocations: 111.2 kB / 1.223 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003427/0.3652, allocations: 210.5 kB / 1.223 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3652, allocations: 0 / 1.223 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.3654, allocations: 151.2 kB / 1.223 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.3658, allocations: 39.03 kB / 1.223 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006075/0.3664, allocations: 358.5 kB / 1.223 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.3667, allocations: 0.7475 MB / 1.224 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.494e-05/0.3668, allocations: 29.53 kB / 1.224 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.31e-05/0.3668, allocations: 11.44 kB / 1.224 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.3668, allocations: 0 / 1.224 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of Templates: time 0.004587/0.3714, allocations: 1.802 MB / 1.226 GB, free: 6.07 MB / 0.9825 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