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.001095/0.001095, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.00174/0.00174, allocations: 168.7 kB / 15.95 MB, free: 204 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.492/1.492, allocations: 223.2 MB / 240 MB, free: 5.406 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.833/2.833, allocations: 437.7 MB / 0.7117 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000683/0.0006831, allocations: 16 kB / 0.8722 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8356/0.8364, allocations: 153.8 MB / 1.022 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.02582/0.8622, allocations: 19.13 MB / 1.041 GB, free: 12.83 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.008078/0.8704, allocations: 5.036 MB / 1.046 GB, free: 7.785 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008948/0.8713, allocations: 19.88 kB / 1.046 GB, free: 7.766 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009737/0.8723, allocations: 258.4 kB / 1.046 GB, free: 7.512 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002312/0.8746, allocations: 0.7541 MB / 1.047 GB, free: 6.754 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00243/0.8771, allocations: 0.7588 MB / 1.048 GB, free: 6.004 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002799/0.8799, allocations: 1.942 MB / 1.05 GB, free: 4.051 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007621/0.8807, allocations: 408.7 kB / 1.05 GB, free: 3.641 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001177/0.8818, allocations: 0.5951 MB / 1.051 GB, free: 3.043 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006677/0.8825, allocations: 462 kB / 1.051 GB, free: 2.59 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 8.153e-05/0.8826, allocations: 24 kB / 1.051 GB, free: 2.566 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002114/0.8847, allocations: 0.959 MB / 1.052 GB, free: 1.605 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.8849, allocations: 119.5 kB / 1.052 GB, free: 1.488 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.8851, allocations: 141.3 kB / 1.052 GB, free: 1.344 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.8863, allocations: 0.8282 MB / 1.053 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.8863, allocations: 0 / 1.053 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8863, allocations: 0 / 1.053 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.8863, allocations: 0 / 1.053 GB, free: 0.5156 MB / 0.795 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.001668/0.888, allocations: 0.9325 MB / 1.054 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.888, allocations: 12.02 kB / 1.054 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008575/0.8889, allocations: 199 kB / 1.054 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.89, allocations: 0.5338 MB / 1.055 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002794/0.8902, allocations: 96.94 kB / 1.055 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.338e-05/0.8903, allocations: 40 kB / 1.055 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009334/0.8913, allocations: 0.4999 MB / 1.055 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.8913, allocations: 8 kB / 1.055 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.673e-05/0.8914, allocations: 19.95 kB / 1.055 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.117e-05/0.8914, allocations: 8 kB / 1.055 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.8924, allocations: 426.6 kB / 1.056 GB, free: 13.64 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.00295/0.8954, allocations: 2.297 MB / 1.058 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009358/0.8964, allocations: 390.9 kB / 1.058 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.8968, allocations: 242.1 kB / 1.059 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003252/0.8972, allocations: 344.7 kB / 1.059 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005914/0.8978, allocations: 303.4 kB / 1.059 GB, free: 9.773 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=33): time 2.334e-06/0.8978, allocations: 0 / 1.059 GB, free: 9.773 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33): time 0.002103/0.8999, allocations: 0.8856 MB / 1.06 GB, free: 8.855 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.9, allocations: 85.09 kB / 1.06 GB, free: 8.754 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005454/0.9005, allocations: 494.8 kB / 1.061 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.9006, allocations: 37.64 kB / 1.061 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002161/0.9008, allocations: 280.4 kB / 1.061 GB, free: 7.941 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.9009, allocations: 106.5 kB / 1.061 GB, free: 7.836 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.966e-05/0.9009, allocations: 4 kB / 1.061 GB, free: 7.832 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.9011, allocations: 370.7 kB / 1.061 GB, free: 7.461 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004075/0.9015, allocations: 179.9 kB / 1.062 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004698/0.902, allocations: 265.3 kB / 1.062 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004385/0.9024, allocations: 230.3 kB / 1.062 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.9025, allocations: 0 / 1.062 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001283/0.9037, allocations: 0.6241 MB / 1.063 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.9039, allocations: 168 kB / 1.063 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.9039, allocations: 8 kB / 1.063 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003434/0.9042, allocations: 68.73 kB / 1.063 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.9046, allocations: 87.83 kB / 1.063 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004611/0.9051, allocations: 0.5952 MB / 1.064 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005034/0.9056, allocations: 83.73 kB / 1.064 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.9056, allocations: 15.98 kB / 1.064 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.876e-06/0.9056, allocations: 4 kB / 1.064 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00111/0.9068, allocations: 0.5604 MB / 1.064 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.9068, allocations: 4 kB / 1.064 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001349/0.9069, allocations: 44.83 kB / 1.064 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.9072, allocations: 84.05 kB / 1.064 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.9088, allocations: 1.635 MB / 1.066 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004561/0.9092, allocations: 79.72 kB / 1.066 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.337e-05/0.9093, allocations: 16 kB / 1.066 GB, free: 2.465 MB / 0.8106 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.0003615/0.9097, allocations: 298.7 kB / 1.066 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.953e-05/0.9097, allocations: 59.38 kB / 1.066 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/0.9111, allocations: 0.6687 MB / 1.067 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.9111, allocations: 4 kB / 1.067 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.9111, allocations: 0 / 1.067 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001191/0.9123, allocations: 0.8257 MB / 1.068 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.9144, allocations: 1.315 MB / 1.069 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.9144, allocations: 4 kB / 1.069 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003099/0.9147, allocations: 63.89 kB / 1.069 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001257/0.9148, allocations: 48.92 kB / 1.069 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.659e-05/0.9149, allocations: 12 kB / 1.069 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003711/0.9153, allocations: 0.5835 MB / 1.07 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.9153, allocations: 0 / 1.07 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.917, allocations: 1.003 MB / 1.071 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002393/0.9172, allocations: 188.2 kB / 1.071 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.968e-05/0.9173, allocations: 8 kB / 1.071 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004772/0.9178, allocations: 64 kB / 1.071 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.541e-05/0.9178, allocations: 19.97 kB / 1.071 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-05/0.9179, allocations: 19.98 kB / 1.071 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003977/0.9183, allocations: 346.8 kB / 1.071 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9183, allocations: 4 kB / 1.071 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001162/0.9195, allocations: 343.5 kB / 1.072 GB, free: 12.35 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 (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.0006912/0.9201, allocations: 288.6 kB / 1.072 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001954/0.9221, allocations: 0.9936 MB / 1.073 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.9221, allocations: 3.938 kB / 1.073 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005992/0.9227, allocations: 336.3 kB / 1.073 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.924, allocations: 258.4 kB / 1.074 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002256/0.9263, allocations: 1.34 MB / 1.075 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004976/0.9268, allocations: 0.8784 MB / 1.076 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000481/0.9273, allocations: 128.4 kB / 1.076 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.9274, allocations: 43.42 kB / 1.076 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of SimCode: time 6.02e-07/0.9274, allocations: 0 / 1.076 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of Templates: time 0.02029/0.9477, allocations: 10.68 MB / 1.086 GB, free: 13.44 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches