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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001123/0.001123, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008953/0.008953, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.389/1.389, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.69/2.69, allocations: 437.8 MB / 0.7121 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003929/0.0003931, allocations: 8 kB / 0.8728 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6917/0.6921, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.02116/0.7133, allocations: 20.16 MB / 1.043 GB, free: 11.6 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.008079/0.7214, allocations: 5.382 MB / 1.048 GB, free: 6.203 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001068/0.7225, allocations: 23.81 kB / 1.048 GB, free: 6.18 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008776/0.7234, allocations: 286.4 kB / 1.048 GB, free: 5.898 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002255/0.7257, allocations: 0.8555 MB / 1.049 GB, free: 5.039 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002313/0.728, allocations: 0.8311 MB / 1.05 GB, free: 4.215 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0026/0.7306, allocations: 2.29 MB / 1.052 GB, free: 1.914 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006691/0.7313, allocations: 430.5 kB / 1.053 GB, free: 1.48 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001061/0.7323, allocations: 0.6107 MB / 1.053 GB, free: 0.8672 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007364/0.7331, allocations: 489.8 kB / 1.054 GB, free: 396 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.7332, allocations: 24 kB / 1.054 GB, free: 372 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002068/0.7353, allocations: 1.095 MB / 1.055 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000167/0.7355, allocations: 131.4 kB / 1.055 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000341/0.7358, allocations: 324 kB / 1.055 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001645/0.7375, allocations: 1.176 MB / 1.056 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.7375, allocations: 0 / 1.056 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.202e-06/0.7375, allocations: 0 / 1.056 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.595e-06/0.7375, allocations: 0 / 1.056 GB, free: 13.63 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.001397/0.7389, allocations: 0.921 MB / 1.057 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.739, allocations: 12.03 kB / 1.057 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008787/0.7398, allocations: 203.9 kB / 1.057 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009986/0.7408, allocations: 0.5573 MB / 1.058 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003529/0.7412, allocations: 100.9 kB / 1.058 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.04e-05/0.7413, allocations: 32 kB / 1.058 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009727/0.7423, allocations: 0.5115 MB / 1.059 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.7423, allocations: 0 / 1.059 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.696e-05/0.7424, allocations: 16 kB / 1.059 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.7424, allocations: 8 kB / 1.059 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.7434, allocations: 426.6 kB / 1.059 GB, free: 10.75 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.002836/0.7463, allocations: 2.301 MB / 1.061 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.7473, allocations: 398.9 kB / 1.062 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005153/0.7479, allocations: 248.9 kB / 1.062 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002787/0.7482, allocations: 336.6 kB / 1.062 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006337/0.7488, allocations: 310.2 kB / 1.062 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=33): time 2.484e-06/0.7488, allocations: 0 / 1.062 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33): time 0.002316/0.7511, allocations: 0.8934 MB / 1.063 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.7512, allocations: 81.11 kB / 1.063 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005366/0.7518, allocations: 0.4949 MB / 1.064 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.786e-05/0.7518, allocations: 41.7 kB / 1.064 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002006/0.752, allocations: 276.4 kB / 1.064 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.736e-05/0.7521, allocations: 102.5 kB / 1.064 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.838e-05/0.7522, allocations: 37.7 kB / 1.064 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.7523, allocations: 362.8 kB / 1.065 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004673/0.7528, allocations: 175.9 kB / 1.065 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005459/0.7534, allocations: 273.3 kB / 1.065 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009952/0.7544, allocations: 494.1 kB / 1.066 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.7544, allocations: 3.938 kB / 1.066 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001518/0.7559, allocations: 0.6357 MB / 1.066 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.756, allocations: 171.9 kB / 1.066 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.756, allocations: 0 / 1.066 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003499/0.7564, allocations: 76.8 kB / 1.066 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003676/0.7568, allocations: 79.89 kB / 1.067 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004925/0.7573, allocations: 0.5953 MB / 1.067 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005692/0.7579, allocations: 79.64 kB / 1.067 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.415e-05/0.7579, allocations: 19.98 kB / 1.067 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/0.7579, allocations: 4 kB / 1.067 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001257/0.7592, allocations: 0.5681 MB / 1.068 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.7592, allocations: 0 / 1.068 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001451/0.7593, allocations: 52.98 kB / 1.068 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003463/0.7597, allocations: 75.89 kB / 1.068 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.761, allocations: 1.638 MB / 1.069 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005598/0.7616, allocations: 83.62 kB / 1.07 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-05/0.7617, allocations: 20 kB / 1.07 GB, free: 15.19 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.0003249/0.762, allocations: 300.2 kB / 1.07 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.487e-05/0.7621, allocations: 55.34 kB / 1.07 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.7635, allocations: 0.6687 MB / 1.071 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.7636, allocations: 4 kB / 1.071 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.7636, allocations: 4 kB / 1.071 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001318/0.7649, allocations: 0.821 MB / 1.071 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002267/0.7672, allocations: 1.326 MB / 1.073 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.7672, allocations: 0 / 1.073 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003411/0.7675, allocations: 67.98 kB / 1.073 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001272/0.7677, allocations: 48.83 kB / 1.073 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.305e-05/0.7677, allocations: 8 kB / 1.073 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003415/0.7681, allocations: 0.5796 MB / 1.073 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.7681, allocations: 3.938 kB / 1.073 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/0.77, allocations: 0.9952 MB / 1.074 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.7703, allocations: 192.2 kB / 1.075 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.036e-05/0.7704, allocations: 12 kB / 1.075 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005915/0.771, allocations: 64 kB / 1.075 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.134e-05/0.771, allocations: 19.97 kB / 1.075 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-05/0.7711, allocations: 28.05 kB / 1.075 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003946/0.7715, allocations: 346.8 kB / 1.075 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7715, allocations: 3.938 kB / 1.075 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001079/0.7726, allocations: 339.5 kB / 1.075 GB, free: 9.066 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.0006928/0.7733, allocations: 305.3 kB / 1.076 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002101/0.7754, allocations: 0.9936 MB / 1.077 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.7754, allocations: 4 kB / 1.077 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006374/0.7761, allocations: 339.3 kB / 1.077 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.7776, allocations: 251.4 kB / 1.077 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.7799, allocations: 1.387 MB / 1.078 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.7803, allocations: 0.8784 MB / 1.079 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0005638/0.7809, allocations: 136.3 kB / 1.079 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.781, allocations: 51.42 kB / 1.08 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of SimCode: time 7.51e-07/0.7811, allocations: 0 / 1.08 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of Templates: time 0.0204/0.8015, allocations: 11 MB / 1.09 GB, free: 9.77 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