Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.0009642/0.0009643, allocations: 99.58 kB / 16.02 MB, free: 76 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.001115/0.001115, allocations: 181.8 kB / 16.92 MB, free: 6.918 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.378/1.378, allocations: 223.3 MB / 241 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.572/2.572, allocations: 437.8 MB / 0.7128 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003741/0.0003743, allocations: 8 kB / 0.8735 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6754/0.6758, allocations: 153.8 MB / 1.024 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.02381/0.6996, allocations: 20.16 MB / 1.043 GB, free: 11.7 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.008463/0.7081, allocations: 5.386 MB / 1.049 GB, free: 6.293 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/0.7092, allocations: 23.81 kB / 1.049 GB, free: 6.27 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00112/0.7103, allocations: 282.5 kB / 1.049 GB, free: 5.992 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002857/0.7132, allocations: 0.8649 MB / 1.05 GB, free: 5.125 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002712/0.7159, allocations: 0.813 MB / 1.051 GB, free: 4.32 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.003062/0.719, allocations: 2.305 MB / 1.053 GB, free: 2.004 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009417/0.72, allocations: 422.5 kB / 1.053 GB, free: 1.578 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001428/0.7214, allocations: 0.6146 MB / 1.054 GB, free: 0.9609 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009637/0.7224, allocations: 497.8 kB / 1.054 GB, free: 484 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001434/0.7225, allocations: 24 kB / 1.054 GB, free: 460 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002234/0.7248, allocations: 1.092 MB / 1.055 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.725, allocations: 123.5 kB / 1.055 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0005364/0.7256, allocations: 335.9 kB / 1.056 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.727, allocations: 0.8536 MB / 1.057 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.727, allocations: 0 / 1.057 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.063e-06/0.727, allocations: 0 / 1.057 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.696e-05/0.7271, allocations: 0 / 1.057 GB, free: 14.04 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001895/0.729, allocations: 0.921 MB / 1.058 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.729, allocations: 8.031 kB / 1.058 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009892/0.73, allocations: 199.9 kB / 1.058 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.7313, allocations: 0.5651 MB / 1.058 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003457/0.7317, allocations: 92.94 kB / 1.058 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.7318, allocations: 36 kB / 1.058 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.7329, allocations: 0.5038 MB / 1.059 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.7329, allocations: 0 / 1.059 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.246e-05/0.733, allocations: 16 kB / 1.059 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.733, allocations: 8 kB / 1.059 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.7341, allocations: 434.6 kB / 1.059 GB, free: 11.16 MB / 0.8106 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.003198/0.7373, allocations: 2.305 MB / 1.062 GB, free: 8.637 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.7384, allocations: 398.9 kB / 1.062 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005348/0.7389, allocations: 236.9 kB / 1.062 GB, free: 8.004 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003109/0.7392, allocations: 340.7 kB / 1.063 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006617/0.7399, allocations: 311.4 kB / 1.063 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=33): time 2.304e-06/0.7399, allocations: 4 kB / 1.063 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33): time 0.00237/0.7423, allocations: 0.8894 MB / 1.064 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/0.7424, allocations: 89.11 kB / 1.064 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005899/0.743, allocations: 0.491 MB / 1.064 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.224e-05/0.743, allocations: 33.7 kB / 1.064 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.7433, allocations: 280.3 kB / 1.065 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.7434, allocations: 106.5 kB / 1.065 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.483e-05/0.7434, allocations: 33.7 kB / 1.065 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.7436, allocations: 362.8 kB / 1.065 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004745/0.7441, allocations: 187.9 kB / 1.065 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.7446, allocations: 269.2 kB / 1.065 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000998/0.7456, allocations: 494.1 kB / 1.066 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.7456, allocations: 3.938 kB / 1.066 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001487/0.7471, allocations: 0.6396 MB / 1.067 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.7473, allocations: 173.6 kB / 1.067 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.7473, allocations: 3.984 kB / 1.067 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003541/0.7476, allocations: 64.81 kB / 1.067 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003838/0.748, allocations: 87.88 kB / 1.067 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004795/0.7485, allocations: 0.5836 MB / 1.067 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006115/0.7491, allocations: 87.56 kB / 1.068 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.883e-05/0.7492, allocations: 16 kB / 1.068 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.7492, allocations: 8 kB / 1.068 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001275/0.7505, allocations: 0.5603 MB / 1.068 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.7505, allocations: 4.156 kB / 1.068 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001497/0.7507, allocations: 48.83 kB / 1.068 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003585/0.7511, allocations: 87.88 kB / 1.068 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001587/0.7527, allocations: 1.642 MB / 1.07 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005908/0.7533, allocations: 75.7 kB / 1.07 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.7533, allocations: 19.98 kB / 1.07 GB, free: 15.6 MB / 0.8262 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.0003701/0.7537, allocations: 294.7 kB / 1.07 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.7538, allocations: 55.34 kB / 1.07 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00151/0.7553, allocations: 0.6688 MB / 1.071 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.7554, allocations: 11.98 kB / 1.071 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.7554, allocations: 0 / 1.071 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001336/0.7567, allocations: 0.8171 MB / 1.072 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00243/0.7592, allocations: 1.326 MB / 1.073 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.7592, allocations: 0 / 1.073 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000355/0.7595, allocations: 71.98 kB / 1.073 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001542/0.7597, allocations: 52.77 kB / 1.073 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-05/0.7598, allocations: 12 kB / 1.073 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003907/0.7602, allocations: 0.5718 MB / 1.074 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.7602, allocations: 3.938 kB / 1.074 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001978/0.7622, allocations: 0.9913 MB / 1.075 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003172/0.7625, allocations: 192.2 kB / 1.075 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.66e-05/0.7626, allocations: 12 kB / 1.075 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006059/0.7632, allocations: 68 kB / 1.075 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.785e-05/0.7633, allocations: 19.97 kB / 1.075 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.208e-05/0.7633, allocations: 23.98 kB / 1.075 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004365/0.7638, allocations: 346.8 kB / 1.075 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7638, allocations: 0 / 1.075 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001195/0.765, allocations: 339.5 kB / 1.076 GB, free: 9.484 MB / 0.8262 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.0008101/0.7658, allocations: 303.9 kB / 1.076 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002271/0.7681, allocations: 0.9975 MB / 1.077 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.7681, allocations: 4 kB / 1.077 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006649/0.7688, allocations: 336 kB / 1.077 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.7704, allocations: 254.3 kB / 1.077 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.773, allocations: 1.404 MB / 1.079 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/0.7735, allocations: 0.8862 MB / 1.08 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.7736, allocations: 47.42 kB / 1.08 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of SimCode: time 2.054e-06/0.7736, allocations: 0 / 1.08 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of Templates: time 0.01801/0.7917, allocations: 11.43 MB / 1.091 GB, free: 9.777 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & ./Buildings_10_Buildings.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.ConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_ConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches