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.001028/0.001028, allocations: 92.16 kB / 16.02 MB, free: 80 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.001208/0.001208, allocations: 183.8 kB / 16.92 MB, free: 6.922 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.376/1.376, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.662/2.662, allocations: 462.6 MB / 0.737 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003577, allocations: 9.375 kB / 0.9034 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3135, allocations: 159.6 MB / 1.059 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.02198/0.3355, allocations: 20.16 MB / 1.079 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.008084/0.3436, allocations: 5.385 MB / 1.084 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009735/0.3446, allocations: 27.75 kB / 1.084 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.3458, allocations: 290.4 kB / 1.085 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002795/0.3486, allocations: 0.8471 MB / 1.085 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00264/0.3513, allocations: 0.8262 MB / 1.086 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002968/0.3543, allocations: 2.285 MB / 1.088 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008883/0.3552, allocations: 440.7 kB / 1.089 GB, free: 6.574 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001405/0.3566, allocations: 0.6068 MB / 1.089 GB, free: 5.965 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009483/0.3575, allocations: 0.4978 MB / 1.09 GB, free: 5.465 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.3577, allocations: 20 kB / 1.09 GB, free: 5.445 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002283/0.36, allocations: 1.092 MB / 1.091 GB, free: 4.352 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002371/0.3602, allocations: 127.4 kB / 1.091 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0005775/0.3608, allocations: 328 kB / 1.091 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001537/0.3623, allocations: 0.8536 MB / 1.092 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3624, allocations: 0 / 1.092 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.973e-06/0.3624, allocations: 0 / 1.092 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.065e-05/0.3624, allocations: 0 / 1.092 GB, free: 3.043 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.001861/0.3643, allocations: 0.9209 MB / 1.093 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.3643, allocations: 12.03 kB / 1.093 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00098/0.3653, allocations: 200 kB / 1.093 GB, free: 1.859 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.3665, allocations: 0.5573 MB / 1.094 GB, free: 1.262 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003342/0.3668, allocations: 96.94 kB / 1.094 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.3669, allocations: 47.84 kB / 1.094 GB, free: 1.121 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.368, allocations: 0.496 MB / 1.095 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.3681, allocations: 0 / 1.095 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.367e-05/0.3681, allocations: 16 kB / 1.095 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.3681, allocations: 12 kB / 1.095 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.3692, allocations: 434.6 kB / 1.095 GB, free: 152 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.003357/0.3726, allocations: 2.289 MB / 1.097 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.3737, allocations: 394.9 kB / 1.098 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000515/0.3742, allocations: 237 kB / 1.098 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002981/0.3745, allocations: 344.7 kB / 1.098 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006473/0.3752, allocations: 306.9 kB / 1.098 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=33): time 1.963e-06/0.3752, allocations: 0 / 1.098 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33): time 0.002335/0.3776, allocations: 0.8974 MB / 1.099 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/0.3776, allocations: 81.11 kB / 1.099 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000585/0.3782, allocations: 499 kB / 1.1 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.144e-05/0.3783, allocations: 33.7 kB / 1.1 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.3785, allocations: 280.4 kB / 1.1 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.3786, allocations: 110.5 kB / 1.1 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-05/0.3787, allocations: 29.7 kB / 1.1 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3789, allocations: 362.8 kB / 1.101 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004637/0.3793, allocations: 183.9 kB / 1.101 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005197/0.3799, allocations: 277.2 kB / 1.101 GB, free: 9.453 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.3809, allocations: 490.2 kB / 1.102 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.3809, allocations: 11.88 kB / 1.102 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001493/0.3824, allocations: 0.6319 MB / 1.102 GB, free: 8.281 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001301/0.3826, allocations: 167.8 kB / 1.102 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.3826, allocations: 8 kB / 1.102 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00036/0.3829, allocations: 64.81 kB / 1.102 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.3833, allocations: 83.88 kB / 1.103 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000492/0.3838, allocations: 0.5991 MB / 1.103 GB, free: 7.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005913/0.3844, allocations: 75.69 kB / 1.103 GB, free: 7.23 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.892e-05/0.3845, allocations: 23.98 kB / 1.103 GB, free: 7.207 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.716e-06/0.3845, allocations: 0 / 1.103 GB, free: 7.207 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001278/0.3858, allocations: 0.5566 MB / 1.104 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.3858, allocations: 4 kB / 1.104 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000148/0.386, allocations: 52.98 kB / 1.104 GB, free: 6.582 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003457/0.3863, allocations: 79.88 kB / 1.104 GB, free: 6.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001582/0.3879, allocations: 1.642 MB / 1.105 GB, free: 4.715 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005454/0.3885, allocations: 75.8 kB / 1.106 GB, free: 4.641 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.3885, allocations: 15.98 kB / 1.106 GB, free: 4.625 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.0003959/0.3889, allocations: 302.6 kB / 1.106 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.3891, allocations: 59.25 kB / 1.106 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001504/0.3906, allocations: 0.6571 MB / 1.107 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.3906, allocations: 7.984 kB / 1.107 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.3906, allocations: 4 kB / 1.107 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001287/0.3919, allocations: 0.8225 MB / 1.107 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002362/0.3943, allocations: 1.335 MB / 1.109 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.3943, allocations: 0 / 1.109 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003523/0.3946, allocations: 75.97 kB / 1.109 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001391/0.3948, allocations: 40.84 kB / 1.109 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.3948, allocations: 11.98 kB / 1.109 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003861/0.3952, allocations: 0.5758 MB / 1.109 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/0.3952, allocations: 11.94 kB / 1.109 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.3972, allocations: 0.9952 MB / 1.11 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002836/0.3975, allocations: 188.2 kB / 1.111 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.928e-05/0.3976, allocations: 8 kB / 1.111 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005802/0.3981, allocations: 67.89 kB / 1.111 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.204e-05/0.3982, allocations: 23.97 kB / 1.111 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.055e-05/0.3983, allocations: 23.97 kB / 1.111 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004225/0.3987, allocations: 342.9 kB / 1.111 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3987, allocations: 0 / 1.111 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001214/0.3999, allocations: 339.5 kB / 1.111 GB, free: 14.49 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.0008896/0.4008, allocations: 312.6 kB / 1.112 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002278/0.4031, allocations: 1.003 MB / 1.113 GB, free: 13.15 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4031, allocations: 0 / 1.113 GB, free: 13.15 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000663/0.4038, allocations: 339.4 kB / 1.113 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/0.4054, allocations: 249.2 kB / 1.113 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00285/0.4082, allocations: 1.423 MB / 1.115 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005841/0.4088, allocations: 0.8784 MB / 1.115 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.409, allocations: 51.36 kB / 1.115 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of SimCode: time 9.72e-07/0.409, allocations: 0 / 1.115 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of Templates: time 0.01932/0.4284, allocations: 11.43 MB / 1.127 GB, free: 14.78 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches