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.0008072/0.0008072, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004798/0.004798, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.361/1.361, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.644/2.644, allocations: 443.3 MB / 0.7175 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003541, allocations: 8.906 kB / 0.8796 GB, free: 41.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2938, allocations: 155.2 MB / 1.031 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.01971/0.3135, allocations: 20.15 MB / 1.051 GB, free: 100 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.008051/0.3216, allocations: 5.393 MB / 1.056 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001024/0.3227, allocations: 19.88 kB / 1.056 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.3237, allocations: 286.4 kB / 1.056 GB, free: 10.39 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.002397/0.3261, allocations: 0.8549 MB / 1.057 GB, free: 9.531 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00238/0.3285, allocations: 0.8141 MB / 1.058 GB, free: 8.723 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00251/0.331, allocations: 2.302 MB / 1.06 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006133/0.3317, allocations: 432.5 kB / 1.061 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.3327, allocations: 0.6068 MB / 1.061 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000634/0.3333, allocations: 0.4939 MB / 1.062 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.209e-05/0.3334, allocations: 24 kB / 1.062 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.3352, allocations: 1.088 MB / 1.063 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001576/0.3354, allocations: 123.4 kB / 1.063 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000312/0.3357, allocations: 332 kB / 1.063 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001505/0.3372, allocations: 1.172 MB / 1.064 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3372, allocations: 0 / 1.064 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3373, allocations: 0 / 1.064 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.488e-06/0.3373, allocations: 0 / 1.064 GB, free: 2.133 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.001505/0.3388, allocations: 0.9327 MB / 1.065 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.3388, allocations: 8.031 kB / 1.065 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009072/0.3397, allocations: 200 kB / 1.065 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.3408, allocations: 0.5611 MB / 1.066 GB, free: 344 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003339/0.3412, allocations: 92.94 kB / 1.066 GB, free: 248 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.292e-05/0.3413, allocations: 40 kB / 1.066 GB, free: 208 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009661/0.3422, allocations: 0.5 MB / 1.067 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.3423, allocations: 3.938 kB / 1.067 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.73e-05/0.3423, allocations: 20 kB / 1.067 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.119e-05/0.3424, allocations: 15.88 kB / 1.067 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.3434, allocations: 434.6 kB / 1.067 GB, free: 15.21 MB / 0.8262 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.002803/0.3462, allocations: 2.289 MB / 1.069 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.3473, allocations: 398.9 kB / 1.07 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005135/0.3478, allocations: 233 kB / 1.07 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002793/0.3481, allocations: 344.7 kB / 1.07 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006451/0.3488, allocations: 318.1 kB / 1.071 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 1.944e-06/0.3488, allocations: 0 / 1.071 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33): time 0.002307/0.3511, allocations: 0.885 MB / 1.071 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.3511, allocations: 85.09 kB / 1.072 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005205/0.3517, allocations: 498.9 kB / 1.072 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.203e-05/0.3517, allocations: 29.7 kB / 1.072 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.3519, allocations: 284.4 kB / 1.072 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.018e-05/0.352, allocations: 106.5 kB / 1.072 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.622e-05/0.3521, allocations: 33.7 kB / 1.072 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3522, allocations: 362.8 kB / 1.073 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004681/0.3527, allocations: 187.8 kB / 1.073 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005334/0.3533, allocations: 273.3 kB / 1.073 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009884/0.3543, allocations: 490.2 kB / 1.074 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.3543, allocations: 3.938 kB / 1.074 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001484/0.3558, allocations: 0.6396 MB / 1.074 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.3559, allocations: 171.9 kB / 1.074 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3559, allocations: 0 / 1.074 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003377/0.3562, allocations: 68.81 kB / 1.075 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.3566, allocations: 83.88 kB / 1.075 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004267/0.3571, allocations: 0.5914 MB / 1.075 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005574/0.3576, allocations: 87.59 kB / 1.075 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.3577, allocations: 16 kB / 1.075 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.164e-06/0.3577, allocations: 7.938 kB / 1.075 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001286/0.359, allocations: 0.5566 MB / 1.076 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-06/0.359, allocations: 0 / 1.076 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001443/0.3591, allocations: 56.81 kB / 1.076 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003632/0.3595, allocations: 84.03 kB / 1.076 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.3609, allocations: 1.642 MB / 1.078 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005162/0.3614, allocations: 71.7 kB / 1.078 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.3615, allocations: 19.98 kB / 1.078 GB, free: 3.688 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.0003136/0.3618, allocations: 302.6 kB / 1.078 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.908e-05/0.3619, allocations: 55.34 kB / 1.078 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/0.3634, allocations: 0.6726 MB / 1.079 GB, free: 2.629 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.3634, allocations: 7.984 kB / 1.079 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.3634, allocations: 0 / 1.079 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001313/0.3647, allocations: 0.8171 MB / 1.079 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/0.367, allocations: 1.326 MB / 1.081 GB, free: 332 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.367, allocations: 4 kB / 1.081 GB, free: 328 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003519/0.3673, allocations: 63.89 kB / 1.081 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000147/0.3675, allocations: 52.89 kB / 1.081 GB, free: 208 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.124e-05/0.3675, allocations: 11.98 kB / 1.081 GB, free: 196 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003465/0.3679, allocations: 0.5757 MB / 1.081 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3679, allocations: 3.938 kB / 1.081 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.3698, allocations: 0.9918 MB / 1.082 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002264/0.37, allocations: 196.2 kB / 1.083 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.972e-05/0.3701, allocations: 11.98 kB / 1.083 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005566/0.3707, allocations: 63.89 kB / 1.083 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.813e-05/0.3708, allocations: 19.97 kB / 1.083 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.43e-05/0.3708, allocations: 23.97 kB / 1.083 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003648/0.3712, allocations: 338.9 kB / 1.083 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2e-07/0.3712, allocations: 8 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001014/0.3722, allocations: 339.4 kB / 1.083 GB, free: 13.56 MB / 0.8419 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.0006175/0.3729, allocations: 321.2 kB / 1.084 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002113/0.375, allocations: 0.9985 MB / 1.085 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.375, allocations: 0 / 1.085 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006268/0.3756, allocations: 343.4 kB / 1.085 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.3771, allocations: 238.5 kB / 1.085 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.3794, allocations: 1.387 MB / 1.087 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005169/0.38, allocations: 0.8745 MB / 1.087 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005412/0.3805, allocations: 132.4 kB / 1.088 GB, free: 9.176 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.3807, allocations: 47.42 kB / 1.088 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of SimCode: time 7.92e-07/0.3807, allocations: 0 / 1.088 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of Templates: time 0.01981/0.4005, allocations: 11 MB / 1.098 GB, free: 14.26 MB / 0.8575 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