Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.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.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dyn.Q_flow|dyn.medium.T|ste.sta_b.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dyn.Q_flow|dyn.medium.T|ste.sta_b.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.00874/0.00874, allocations: 171.9 kB / 16.26 MB, free: 6.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.483/1.483, 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.725/2.725, allocations: 462.7 MB / 0.7364 GB, free: 312 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.0003797, allocations: 9.25 kB / 0.9028 GB, free: 36.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3193, allocations: 159.6 MB / 1.059 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.02074/0.3401, allocations: 20.17 MB / 1.078 GB, free: 1.285 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.008185/0.3483, allocations: 5.389 MB / 1.084 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006942/0.3491, allocations: 27.81 kB / 1.084 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0008882/0.35, allocations: 278.4 kB / 1.084 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00251/0.3525, allocations: 0.8555 MB / 1.085 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002347/0.3549, allocations: 0.8214 MB / 1.086 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0027/0.3576, allocations: 2.301 MB / 1.088 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007077/0.3583, allocations: 444.7 kB / 1.088 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001173/0.3595, allocations: 0.6068 MB / 1.089 GB, free: 6.539 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006836/0.3602, allocations: 497.8 kB / 1.089 GB, free: 6.051 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.6e-05/0.3603, allocations: 28 kB / 1.089 GB, free: 6.023 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002067/0.3623, allocations: 1.088 MB / 1.09 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001583/0.3625, allocations: 119.5 kB / 1.09 GB, free: 4.816 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004276/0.3629, allocations: 331.9 kB / 1.091 GB, free: 4.484 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001571/0.3645, allocations: 1.172 MB / 1.092 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3645, allocations: 0 / 1.092 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3645, allocations: 0 / 1.092 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.205e-06/0.3646, allocations: 0 / 1.092 GB, free: 3.309 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.0016/0.3662, allocations: 0.921 MB / 1.093 GB, free: 2.332 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.3662, allocations: 8.031 kB / 1.093 GB, free: 2.324 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009649/0.3672, allocations: 199.9 kB / 1.093 GB, free: 2.129 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001228/0.3684, allocations: 0.5611 MB / 1.094 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003513/0.3688, allocations: 92.94 kB / 1.094 GB, free: 1.438 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.061e-05/0.3689, allocations: 47.84 kB / 1.094 GB, free: 1.391 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.37, allocations: 0.5077 MB / 1.094 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.37, allocations: 0 / 1.094 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.952e-05/0.3701, allocations: 20 kB / 1.094 GB, free: 0.8438 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.3701, allocations: 8 kB / 1.094 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.3712, allocations: 434.6 kB / 1.095 GB, free: 420 kB / 0.8419 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002989/0.3742, allocations: 2.285 MB / 1.097 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.3753, allocations: 394.9 kB / 1.097 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000518/0.3758, allocations: 237 kB / 1.097 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002944/0.3761, allocations: 340.6 kB / 1.098 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006422/0.3768, allocations: 310.9 kB / 1.098 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=33): time 1.964e-06/0.3768, allocations: 0 / 1.098 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33): time 0.002332/0.3791, allocations: 0.8858 MB / 1.099 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.3792, allocations: 89.09 kB / 1.099 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005621/0.3798, allocations: 498.9 kB / 1.1 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.446e-05/0.3798, allocations: 29.7 kB / 1.1 GB, free: 11 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.38, allocations: 284.4 kB / 1.1 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.3802, allocations: 110.4 kB / 1.1 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.673e-05/0.3802, allocations: 33.7 kB / 1.1 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.3804, allocations: 362.8 kB / 1.1 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004803/0.3809, allocations: 187.8 kB / 1.101 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005335/0.3814, allocations: 277.2 kB / 1.101 GB, free: 9.715 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.3824, allocations: 493.5 kB / 1.101 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3824, allocations: 3.938 kB / 1.101 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001512/0.384, allocations: 0.6358 MB / 1.102 GB, free: 8.543 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.000112/0.3841, allocations: 175.8 kB / 1.102 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3841, allocations: 0 / 1.102 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003596/0.3845, allocations: 68.81 kB / 1.102 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003761/0.3848, allocations: 83.88 kB / 1.102 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004646/0.3853, allocations: 0.5953 MB / 1.103 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005536/0.3859, allocations: 79.69 kB / 1.103 GB, free: 7.488 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.3859, allocations: 20 kB / 1.103 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.408e-06/0.386, allocations: 5.562 kB / 1.103 GB, free: 7.465 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001319/0.3873, allocations: 0.5644 MB / 1.103 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-06/0.3873, allocations: 0 / 1.103 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001473/0.3874, allocations: 48.83 kB / 1.103 GB, free: 6.84 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.3878, allocations: 83.94 kB / 1.104 GB, free: 6.758 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001561/0.3894, allocations: 1.638 MB / 1.105 GB, free: 4.973 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005264/0.3899, allocations: 71.7 kB / 1.105 GB, free: 4.902 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.793e-05/0.39, allocations: 19.98 kB / 1.105 GB, free: 4.883 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003473/0.3903, allocations: 298.7 kB / 1.106 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.153e-05/0.3904, allocations: 59.34 kB / 1.106 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.392, allocations: 0.6625 MB / 1.106 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.392, allocations: 4 kB / 1.106 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.392, allocations: 4.062 kB / 1.106 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001366/0.3934, allocations: 0.8212 MB / 1.107 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002352/0.3957, allocations: 1.327 MB / 1.108 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.3957, allocations: 8.094 kB / 1.108 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003406/0.3961, allocations: 59.95 kB / 1.108 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001384/0.3962, allocations: 60.73 kB / 1.108 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.3963, allocations: 12 kB / 1.108 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003785/0.3967, allocations: 0.5758 MB / 1.109 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3967, allocations: 3.938 kB / 1.109 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/0.3986, allocations: 0.9885 MB / 1.11 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/0.3989, allocations: 188.2 kB / 1.11 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.026e-05/0.399, allocations: 12.06 kB / 1.11 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005717/0.3996, allocations: 71.81 kB / 1.11 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.509e-05/0.3996, allocations: 23.91 kB / 1.11 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.362e-05/0.3997, allocations: 19.98 kB / 1.11 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003948/0.4001, allocations: 342.8 kB / 1.111 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4001, allocations: 4 kB / 1.111 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001087/0.4012, allocations: 343.4 kB / 1.111 GB, free: 14.75 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006946/0.4019, allocations: 315.8 kB / 1.111 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002143/0.404, allocations: 0.9943 MB / 1.112 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4041, allocations: 0 / 1.112 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006629/0.4047, allocations: 343.4 kB / 1.113 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.4062, allocations: 252.9 kB / 1.113 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.4086, allocations: 1.387 MB / 1.114 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004823/0.4091, allocations: 0.8745 MB / 1.115 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000544/0.4096, allocations: 136.4 kB / 1.115 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.4098, allocations: 47.42 kB / 1.115 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of SimCode: time 2.71e-07/0.4098, allocations: 0 / 1.115 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of Templates: time 0.0199/0.4297, allocations: 11 MB / 1.126 GB, free: 15.42 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_ConservationEquation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches