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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001633/0.001633, allocations: 110.6 kB / 16.37 MB, free: 6.004 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.001829/0.001829, allocations: 197.6 kB / 17.31 MB, free: 5.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.479/1.479, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.49/2.49, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 67.94 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3532, allocations: 153 MB / 1.027 GB, free: 2.082 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004555/0.3578, allocations: 3.089 MB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002085/0.3599, allocations: 1.34 MB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.36, allocations: 4 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000962/0.361, allocations: 330.7 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002871/0.3613, allocations: 143.3 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.3616, allocations: 135.6 kB / 1.032 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003058/0.3619, allocations: 299 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000382/0.3623, allocations: 240.2 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.3624, allocations: 127.5 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.3627, allocations: 135.5 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.878e-05/0.3628, allocations: 24 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002453/0.363, allocations: 167.6 kB / 1.033 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001602/0.3632, allocations: 75.8 kB / 1.033 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.3633, allocations: 111.5 kB / 1.033 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003606/0.3637, allocations: 334.9 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3637, allocations: 0 / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3637, allocations: 0 / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.3637, allocations: 0 / 1.033 GB, free: 11.55 MB / 0.8106 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.0007965/0.3645, allocations: 0.5197 MB / 1.034 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.3646, allocations: 12.03 kB / 1.034 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005548/0.3651, allocations: 80.53 kB / 1.034 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003511/0.3655, allocations: 240 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.3655, allocations: 16.73 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.3655, allocations: 24.31 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003981/0.366, allocations: 295.6 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.366, allocations: 3.984 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.366, allocations: 8 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.955e-05/0.366, allocations: 16.31 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000282/0.3663, allocations: 197 kB / 1.034 GB, free: 10.05 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.3679, allocations: 1.456 MB / 1.036 GB, free: 8.43 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002481/0.3681, allocations: 183.6 kB / 1.036 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.53e-05/0.3682, allocations: 28.84 kB / 1.036 GB, free: 8.191 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.3682, allocations: 4 kB / 1.036 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.3682, allocations: 34.56 kB / 1.036 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.705e-06/0.3682, allocations: 0 / 1.036 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004471/0.3687, allocations: 231.3 kB / 1.036 GB, free: 7.891 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.3687, allocations: 51.41 kB / 1.036 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.3689, allocations: 192.2 kB / 1.037 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.369, allocations: 29.7 kB / 1.037 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.202e-05/0.3691, allocations: 171.7 kB / 1.037 GB, free: 7.426 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.3691, allocations: 27.64 kB / 1.037 GB, free: 7.398 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.105e-05/0.3692, allocations: 37.62 kB / 1.037 GB, free: 7.355 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.3693, allocations: 326.8 kB / 1.037 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.497e-05/0.3694, allocations: 35.98 kB / 1.037 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.644e-05/0.3695, allocations: 104.5 kB / 1.037 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.3697, allocations: 144.4 kB / 1.037 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3697, allocations: 0 / 1.037 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002843/0.37, allocations: 186.1 kB / 1.038 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.37, allocations: 12.28 kB / 1.038 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.37, allocations: 0 / 1.038 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001476/0.3701, allocations: 24.84 kB / 1.038 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.3703, allocations: 35.92 kB / 1.038 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.3713, allocations: 1.415 MB / 1.039 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.3714, allocations: 23.84 kB / 1.039 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.3714, allocations: 12 kB / 1.039 GB, free: 4.832 MB / 0.8106 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.0001471/0.3716, allocations: 157.8 kB / 1.039 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.738e-05/0.3716, allocations: 19.75 kB / 1.039 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.909e-05/0.3717, allocations: 17.41 kB / 1.039 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3717, allocations: 0 / 1.039 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.3717, allocations: 0 / 1.039 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3717, allocations: 0 / 1.039 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005225/0.3722, allocations: 451.2 kB / 1.04 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.3722, allocations: 0 / 1.04 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.612e-05/0.3723, allocations: 12 kB / 1.04 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.409e-05/0.3724, allocations: 24.83 kB / 1.04 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.3724, allocations: 0 / 1.04 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.3736, allocations: 1.418 MB / 1.041 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3736, allocations: 0 / 1.041 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002697/0.3739, allocations: 212.1 kB / 1.041 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.103e-05/0.3739, allocations: 97.09 kB / 1.041 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.374, allocations: 4 kB / 1.041 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3741, allocations: 7.984 kB / 1.041 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.582e-05/0.3741, allocations: 0 / 1.041 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.3741, allocations: 4 kB / 1.041 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000123/0.3743, allocations: 143.1 kB / 1.042 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3743, allocations: 0 / 1.042 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003187/0.3746, allocations: 59.75 kB / 1.042 GB, free: 1.98 MB / 0.8106 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.0001088/0.3747, allocations: 99.25 kB / 1.042 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003304/0.375, allocations: 214.5 kB / 1.042 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.375, allocations: 0 / 1.042 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.3752, allocations: 147.2 kB / 1.042 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.3756, allocations: 51.06 kB / 1.042 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005717/0.3761, allocations: 350.5 kB / 1.042 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005706/0.3767, allocations: 0.7514 MB / 1.043 GB, free: 308 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.529e-05/0.3768, allocations: 21.72 kB / 1.043 GB, free: 284 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.23e-05/0.3768, allocations: 19.44 kB / 1.043 GB, free: 264 kB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3768, allocations: 7.875 kB / 1.043 GB, free: 256 kB / 0.8106 GB Notification: Performance of Templates: time 0.00492/0.3818, allocations: 1.738 MB / 1.045 GB, free: 14.53 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 -s cvode -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/jenkins1/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