Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modWatRev.conEqn.sta_a.T|modWatRev.conEqn.sta_b.T|modWatNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_b.T|modAirNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_a.X.1.|modAirRev.conEqn.sta_b.X.1.|modAirNoRev.conEqn.sta_b.X.1.|QSen_flow.y|mWat_flow.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modWatRev.conEqn.sta_a.T|modWatRev.conEqn.sta_b.T|modWatNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_b.T|modAirNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_a.X.1.|modAirRev.conEqn.sta_b.X.1.|modAirNoRev.conEqn.sta_b.X.1.|QSen_flow.y|mWat_flow.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 113.5 kB / 16.37 MB, free: 6.004 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.001991/0.001991, allocations: 196 kB / 17.31 MB, free: 5.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.377/1.377, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.332/2.332, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 62.75 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3133, allocations: 140.4 MB / 0.9511 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.9338/1.247, allocations: 194 MB / 1.141 GB, free: 2 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.009106/1.256, allocations: 6.939 MB / 1.147 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001857/1.258, allocations: 46.34 kB / 1.147 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001917/1.26, allocations: 0.6818 MB / 1.148 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.008339/1.269, allocations: 2.337 MB / 1.15 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004233/1.273, allocations: 1.432 MB / 1.152 GB, free: 452 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.005531/1.278, allocations: 2.988 MB / 1.155 GB, free: 64 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001867/1.28, allocations: 0.8868 MB / 1.156 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00335/1.284, allocations: 1.149 MB / 1.157 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001666/1.285, allocations: 0.7925 MB / 1.157 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0002208/1.286, allocations: 99.69 kB / 1.158 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005206/1.291, allocations: 2.067 MB / 1.16 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0006532/1.292, allocations: 364.1 kB / 1.16 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.00113/1.293, allocations: 0.5889 MB / 1.16 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.006109/1.299, allocations: 2.391 MB / 1.163 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/1.299, allocations: 2.531 kB / 1.163 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of FrontEnd: time 4.539e-06/1.299, allocations: 1 kB / 1.163 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.779e-05/1.299, allocations: 0 / 1.163 GB, free: 13.83 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.004563/1.303, allocations: 1.625 MB / 1.164 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/1.303, allocations: 9.812 kB / 1.164 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003002/1.306, allocations: 0.5342 MB / 1.165 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002499/1.309, allocations: 1.038 MB / 1.166 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.55e-05/1.309, allocations: 58.72 kB / 1.166 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/1.309, allocations: 66.5 kB / 1.166 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002468/1.312, allocations: 1.108 MB / 1.167 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/1.312, allocations: 5.312 kB / 1.167 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.525e-05/1.312, allocations: 34.12 kB / 1.167 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.09e-05/1.312, allocations: 30.27 kB / 1.167 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002955/1.315, allocations: 1.163 MB / 1.168 GB, free: 11.23 MB / 0.8731 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.006082/1.321, allocations: 3.166 MB / 1.171 GB, free: 9.203 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001656/1.323, allocations: 0.6884 MB / 1.172 GB, free: 8.844 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007599/1.323, allocations: 418.3 kB / 1.173 GB, free: 8.645 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009066/1.324, allocations: 1.022 MB / 1.173 GB, free: 7.477 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00104/1.325, allocations: 0.5192 MB / 1.174 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=57): time 2.214e-06/1.325, allocations: 0 / 1.174 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of matching and sorting (n=57): time 0.003104/1.328, allocations: 1.215 MB / 1.175 GB, free: 6.523 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/1.329, allocations: 139.8 kB / 1.175 GB, free: 6.363 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001972/1.331, allocations: 1.179 MB / 1.176 GB, free: 5.723 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001176/1.331, allocations: 43.11 kB / 1.177 GB, free: 5.68 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000352/1.331, allocations: 444.8 kB / 1.177 GB, free: 5.297 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/1.331, allocations: 191 kB / 1.177 GB, free: 5.133 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/1.332, allocations: 143.6 kB / 1.177 GB, free: 5.051 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001127/1.332, allocations: 323.4 kB / 1.178 GB, free: 4.734 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/1.333, allocations: 444.7 kB / 1.178 GB, free: 4.523 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/1.334, allocations: 0.593 MB / 1.179 GB, free: 4.152 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001932/1.336, allocations: 0.9274 MB / 1.179 GB, free: 3.574 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/1.336, allocations: 0 / 1.179 GB, free: 3.574 MB / 0.8731 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003157/1.339, allocations: 1.198 MB / 1.181 GB, free: 2.973 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.715e-05/1.339, allocations: 39.42 kB / 1.181 GB, free: 2.938 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.507e-06/1.339, allocations: 2.75 kB / 1.181 GB, free: 2.938 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/1.339, allocations: 7.375 kB / 1.181 GB, free: 2.938 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009109/1.34, allocations: 190.8 kB / 1.181 GB, free: 2.879 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/1.34, allocations: 16.97 kB / 1.181 GB, free: 2.867 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/1.342, allocations: 235.2 kB / 1.181 GB, free: 2.754 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.683e-05/1.342, allocations: 41.06 kB / 1.181 GB, free: 2.738 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000566/1.343, allocations: 327.3 kB / 1.181 GB, free: 2.484 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002056/1.343, allocations: 114.5 kB / 1.182 GB, free: 2.426 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002054/1.345, allocations: 0.9997 MB / 1.183 GB, free: 1.867 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.641e-05/1.345, allocations: 11.17 kB / 1.183 GB, free: 1.863 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/1.345, allocations: 3.938 kB / 1.183 GB, free: 1.859 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/1.345, allocations: 3.5 kB / 1.183 GB, free: 1.859 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004877/1.35, allocations: 3.175 MB / 1.186 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.567e-06/1.35, allocations: 7.938 kB / 1.186 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005822/1.351, allocations: 116.2 kB / 1.186 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.281e-05/1.351, allocations: 10.47 kB / 1.186 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-05/1.351, allocations: 27.23 kB / 1.186 GB, free: 15.58 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.07e-05/1.351, allocations: 13.47 kB / 1.186 GB, free: 15.57 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/1.351, allocations: 11.84 kB / 1.186 GB, free: 15.57 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002166/1.353, allocations: 1.34 MB / 1.187 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006235/1.354, allocations: 324.3 kB / 1.187 GB, free: 14.33 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/1.354, allocations: 31.67 kB / 1.188 GB, free: 14.32 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/1.355, allocations: 100 kB / 1.188 GB, free: 14.28 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/1.355, allocations: 62.38 kB / 1.188 GB, free: 14.24 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.434e-05/1.355, allocations: 35.77 kB / 1.188 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001442/1.356, allocations: 0.8456 MB / 1.189 GB, free: 13.77 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.41e-07/1.356, allocations: 0 / 1.189 GB, free: 13.77 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001106/1.358, allocations: 308.5 kB / 1.189 GB, free: 13.71 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * 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 (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007515/1.358, allocations: 335.9 kB / 1.189 GB, free: 13.53 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002377/1.361, allocations: 1.027 MB / 1.19 GB, free: 13 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/1.361, allocations: 0 / 1.19 GB, free: 13 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0009258/1.362, allocations: 0.5059 MB / 1.191 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/1.364, allocations: 0.5524 MB / 1.191 GB, free: 12.43 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003612/1.368, allocations: 2.033 MB / 1.193 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006429/1.368, allocations: 1.071 MB / 1.194 GB, free: 10.2 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0009513/1.369, allocations: 280.5 kB / 1.194 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002341/1.37, allocations: 80.19 kB / 1.195 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of SimCode: time 1.203e-06/1.37, allocations: 0 / 1.195 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of Templates: time 0.03453/1.404, allocations: 22 MB / 1.216 GB, free: 12.41 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches