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.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.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.001324/0.001324, allocations: 92.08 kB / 15.06 MB, free: 1.098 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.001438/0.001438, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.885/2.885, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004129/0.000413, allocations: 7.906 kB / 0.9021 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3625/0.363, allocations: 159.6 MB / 1.058 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.02023/0.3833, allocations: 19.13 MB / 1.077 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007469/0.3908, allocations: 5.043 MB / 1.082 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007241/0.3915, allocations: 19.88 kB / 1.082 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009063/0.3925, allocations: 258.4 kB / 1.082 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002081/0.3946, allocations: 0.7502 MB / 1.083 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002165/0.3967, allocations: 0.7623 MB / 1.083 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002298/0.399, allocations: 1.95 MB / 1.085 GB, free: 9.352 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006669/0.3997, allocations: 411 kB / 1.086 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001131/0.4009, allocations: 0.5913 MB / 1.086 GB, free: 8.34 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006643/0.4015, allocations: 462 kB / 1.087 GB, free: 7.887 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.818e-05/0.4016, allocations: 24 kB / 1.087 GB, free: 7.863 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001943/0.4036, allocations: 0.9551 MB / 1.088 GB, free: 6.906 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001609/0.4037, allocations: 123.4 kB / 1.088 GB, free: 6.785 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.4039, allocations: 137.4 kB / 1.088 GB, free: 6.645 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.405, allocations: 0.8265 MB / 1.089 GB, free: 5.816 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.405, allocations: 0 / 1.089 GB, free: 5.816 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.094e-06/0.4051, allocations: 0 / 1.089 GB, free: 5.816 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.4051, allocations: 0 / 1.089 GB, free: 5.816 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.001592/0.4067, allocations: 0.9286 MB / 1.09 GB, free: 4.832 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.4067, allocations: 12.03 kB / 1.09 GB, free: 4.82 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008061/0.4075, allocations: 195 kB / 1.09 GB, free: 4.629 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009999/0.4085, allocations: 0.5416 MB / 1.09 GB, free: 4.047 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002888/0.4088, allocations: 96.94 kB / 1.09 GB, free: 3.953 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.225e-05/0.4089, allocations: 39.94 kB / 1.09 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009122/0.4098, allocations: 0.4999 MB / 1.091 GB, free: 3.391 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.4099, allocations: 3.953 kB / 1.091 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.42e-05/0.4099, allocations: 20 kB / 1.091 GB, free: 3.367 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.672e-05/0.4099, allocations: 8 kB / 1.091 GB, free: 3.359 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000933/0.4109, allocations: 434.6 kB / 1.091 GB, free: 2.934 MB / 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.002779/0.4137, allocations: 2.282 MB / 1.094 GB, free: 448 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009273/0.4146, allocations: 390.9 kB / 1.094 GB, free: 48 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004722/0.4151, allocations: 243.3 kB / 1.094 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002973/0.4154, allocations: 344.7 kB / 1.095 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005965/0.416, allocations: 306.9 kB / 1.095 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=33): time 1.519e-05/0.416, allocations: 0 / 1.095 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33): time 0.002042/0.4181, allocations: 0.8858 MB / 1.096 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.4182, allocations: 81.11 kB / 1.096 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005086/0.4187, allocations: 494.9 kB / 1.096 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.101e-05/0.4187, allocations: 37.7 kB / 1.096 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.4189, allocations: 280.4 kB / 1.097 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.658e-05/0.419, allocations: 106.5 kB / 1.097 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.022e-05/0.4191, allocations: 4 kB / 1.097 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.4192, allocations: 370.7 kB / 1.097 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000409/0.4196, allocations: 183.9 kB / 1.097 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004782/0.4201, allocations: 265.3 kB / 1.097 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004468/0.4206, allocations: 225.5 kB / 1.098 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4206, allocations: 0 / 1.098 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001272/0.4219, allocations: 0.6252 MB / 1.098 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.422, allocations: 171.8 kB / 1.098 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.422, allocations: 11.98 kB / 1.098 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003125/0.4223, allocations: 64.8 kB / 1.099 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000346/0.4227, allocations: 87.88 kB / 1.099 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004348/0.4231, allocations: 0.5914 MB / 1.099 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004649/0.4236, allocations: 83.67 kB / 1.099 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/0.4237, allocations: 15.98 kB / 1.099 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.746e-06/0.4237, allocations: 7.953 kB / 1.099 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001125/0.4248, allocations: 0.5527 MB / 1.1 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-06/0.4248, allocations: 0 / 1.1 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001266/0.4249, allocations: 44.84 kB / 1.1 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003261/0.4253, allocations: 88.03 kB / 1.1 GB, free: 9.648 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.4267, allocations: 1.631 MB / 1.102 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004329/0.4272, allocations: 83.72 kB / 1.102 GB, free: 7.785 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.144e-05/0.4272, allocations: 15.94 kB / 1.102 GB, free: 7.77 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 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002998/0.4275, allocations: 306.8 kB / 1.102 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.855e-05/0.4276, allocations: 59.3 kB / 1.102 GB, free: 7.395 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001319/0.4289, allocations: 0.6531 MB / 1.103 GB, free: 6.719 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.4289, allocations: 4 kB / 1.103 GB, free: 6.715 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.4289, allocations: 3.938 kB / 1.103 GB, free: 6.711 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00124/0.4302, allocations: 0.8297 MB / 1.103 GB, free: 5.805 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002158/0.4324, allocations: 1.308 MB / 1.105 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.4324, allocations: 3.984 kB / 1.105 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.4327, allocations: 67.89 kB / 1.105 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001313/0.4328, allocations: 44.94 kB / 1.105 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.4329, allocations: 15.98 kB / 1.105 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003574/0.4332, allocations: 0.5757 MB / 1.105 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.4333, allocations: 7.969 kB / 1.105 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/0.435, allocations: 1 MB / 1.106 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002414/0.4353, allocations: 188.2 kB / 1.107 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.803e-05/0.4353, allocations: 8 kB / 1.107 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004945/0.4358, allocations: 63.94 kB / 1.107 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.179e-05/0.4359, allocations: 27.92 kB / 1.107 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/0.436, allocations: 19.98 kB / 1.107 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003939/0.4364, allocations: 342.8 kB / 1.107 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4364, allocations: 7.938 kB / 1.107 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001094/0.4375, allocations: 339.5 kB / 1.107 GB, free: 1.652 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006851/0.4382, allocations: 296.9 kB / 1.108 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001957/0.4401, allocations: 1.006 MB / 1.109 GB, free: 328 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.4402, allocations: 0 / 1.109 GB, free: 328 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000597/0.4408, allocations: 335.4 kB / 1.109 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.442, allocations: 257.7 kB / 1.109 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.4443, allocations: 1.343 MB / 1.11 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.4447, allocations: 0.8862 MB / 1.111 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0005472/0.4453, allocations: 128.4 kB / 1.111 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.4454, allocations: 47.42 kB / 1.112 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of SimCode: time 2.51e-07/0.4454, allocations: 0 / 1.112 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of Templates: time 0.02058/0.466, allocations: 10.65 MB / 1.122 GB, free: 2.746 MB / 0.8731 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