Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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_latest_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_latest_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.001158/0.001159, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001253/0.001253, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.432/1.432, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.921/2.921, allocations: 472.6 MB / 0.7449 GB, free: 4.809 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001314, allocations: 64.47 kB / 0.9116 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3761/0.3774, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.9213/1.299, allocations: 191.5 MB / 1.255 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01041/1.309, allocations: 6.894 MB / 1.261 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001442/1.311, allocations: 39.12 kB / 1.262 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.00191/1.313, allocations: 0.5922 MB / 1.262 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006129/1.319, allocations: 2.203 MB / 1.264 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00358/1.322, allocations: 1.318 MB / 1.266 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004521/1.327, allocations: 2.998 MB / 1.268 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001819/1.329, allocations: 0.9086 MB / 1.269 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003512/1.332, allocations: 1.162 MB / 1.27 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002342/1.335, allocations: 0.8359 MB / 1.271 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005553/1.335, allocations: 98.12 kB / 1.271 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006237/1.342, allocations: 2.137 MB / 1.273 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009552/1.342, allocations: 369.9 kB / 1.274 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002248/1.345, allocations: 0.5871 MB / 1.274 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.006128/1.351, allocations: 2.472 MB / 1.277 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/1.351, allocations: 5.062 kB / 1.277 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.894e-06/1.351, allocations: 0.7188 kB / 1.277 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.934e-05/1.351, allocations: 0 / 1.277 GB, free: 5.398 MB / 0.9981 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.004098/1.355, allocations: 1.625 MB / 1.278 GB, free: 20.54 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/1.355, allocations: 9.25 kB / 1.278 GB, free: 20.54 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003088/1.358, allocations: 0.5362 MB / 1.279 GB, free: 20.47 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00229/1.36, allocations: 0.9875 MB / 1.28 GB, free: 20.13 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001249/1.362, allocations: 276.9 kB / 1.28 GB, free: 20.13 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/1.362, allocations: 68.84 kB / 1.28 GB, free: 20.13 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002466/1.364, allocations: 1.124 MB / 1.281 GB, free: 20.02 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/1.364, allocations: 4.219 kB / 1.281 GB, free: 20.02 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.276e-05/1.364, allocations: 28.78 kB / 1.281 GB, free: 20.02 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.192e-05/1.365, allocations: 33.83 kB / 1.281 GB, free: 20.02 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003118/1.368, allocations: 1.2 MB / 1.283 GB, free: 20.01 MB / 1.014 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.005501/1.373, allocations: 3.208 MB / 1.286 GB, free: 19.08 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/1.375, allocations: 0.6836 MB / 1.286 GB, free: 19.06 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007666/1.376, allocations: 427.3 kB / 1.287 GB, free: 19.05 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009202/1.376, allocations: 1.026 MB / 1.288 GB, free: 17.91 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009627/1.377, allocations: 0.5168 MB / 1.288 GB, free: 17.81 MB / 1.014 GB Notification: Performance of pre-optimization done (n=57): time 2.394e-06/1.377, allocations: 1.938 kB / 1.288 GB, free: 17.81 MB / 1.014 GB Notification: Performance of matching and sorting (n=57): time 0.002923/1.38, allocations: 1.219 MB / 1.289 GB, free: 17.68 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.301e-05/1.38, allocations: 140.6 kB / 1.29 GB, free: 17.52 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001972/1.382, allocations: 1.202 MB / 1.291 GB, free: 17.37 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001099/1.383, allocations: 42.33 kB / 1.291 GB, free: 17.34 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003386/1.383, allocations: 436.8 kB / 1.291 GB, free: 17.21 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/1.383, allocations: 188.2 kB / 1.291 GB, free: 17.09 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002937/1.383, allocations: 146.2 kB / 1.292 GB, free: 17.07 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001538/1.384, allocations: 329.6 kB / 1.292 GB, free: 16.77 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/1.385, allocations: 458.4 kB / 1.292 GB, free: 16.77 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/1.386, allocations: 0.618 MB / 1.293 GB, free: 16.63 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001917/1.388, allocations: 0.9479 MB / 1.294 GB, free: 16.46 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/1.388, allocations: 1.188 kB / 1.294 GB, free: 16.46 MB / 1.014 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003218/1.391, allocations: 1.234 MB / 1.295 GB, free: 16.3 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 6.087e-05/1.391, allocations: 36.78 kB / 1.295 GB, free: 16.27 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/1.391, allocations: 3.781 kB / 1.295 GB, free: 16.27 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/1.391, allocations: 5.125 kB / 1.295 GB, free: 16.27 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009512/1.392, allocations: 202.4 kB / 1.295 GB, free: 16.25 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/1.392, allocations: 7.891 kB / 1.295 GB, free: 16.25 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/1.394, allocations: 279.4 kB / 1.296 GB, free: 16.18 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.224e-05/1.394, allocations: 37.78 kB / 1.296 GB, free: 16.18 MB / 1.014 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.0005462/1.395, allocations: 328.8 kB / 1.296 GB, free: 16.04 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/1.395, allocations: 112.3 kB / 1.296 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002011/1.397, allocations: 0.9908 MB / 1.297 GB, free: 15.87 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.968e-05/1.397, allocations: 11.53 kB / 1.297 GB, free: 15.87 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/1.397, allocations: 4 kB / 1.297 GB, free: 15.86 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/1.397, allocations: 5.344 kB / 1.297 GB, free: 15.86 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004469/1.402, allocations: 3.157 MB / 1.3 GB, free: 15.09 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/1.402, allocations: 7 kB / 1.3 GB, free: 15.09 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005651/1.402, allocations: 123.9 kB / 1.3 GB, free: 15.09 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.395e-05/1.402, allocations: 10.94 kB / 1.3 GB, free: 15.09 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.975e-05/1.402, allocations: 25.22 kB / 1.3 GB, free: 15.09 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.257e-05/1.402, allocations: 12.66 kB / 1.3 GB, free: 15.09 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/1.402, allocations: 18.17 kB / 1.3 GB, free: 15.08 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/1.404, allocations: 1.349 MB / 1.302 GB, free: 14.49 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006236/1.405, allocations: 330.8 kB / 1.302 GB, free: 14.33 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/1.405, allocations: 28.98 kB / 1.302 GB, free: 14.33 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/1.406, allocations: 106.9 kB / 1.302 GB, free: 14.32 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/1.406, allocations: 63.69 kB / 1.302 GB, free: 14.31 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.971e-05/1.407, allocations: 40.5 kB / 1.302 GB, free: 14.31 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001572/1.408, allocations: 0.8683 MB / 1.303 GB, free: 14.19 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.81e-07/1.408, allocations: 0 / 1.303 GB, free: 14.19 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001209/1.409, allocations: 298.3 kB / 1.303 GB, free: 14.17 MB / 1.014 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.0007551/1.41, allocations: 349.6 kB / 1.304 GB, free: 14.03 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002536/1.413, allocations: 1.045 MB / 1.305 GB, free: 13.93 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/1.413, allocations: 2.531 kB / 1.305 GB, free: 13.93 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0008559/1.414, allocations: 0.5138 MB / 1.305 GB, free: 13.86 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002874/1.416, allocations: 0.557 MB / 1.306 GB, free: 13.77 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003176/1.42, allocations: 2.34 MB / 1.308 GB, free: 12.57 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006032/1.42, allocations: 1.069 MB / 1.309 GB, free: 11.86 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001171/1.421, allocations: 276.4 kB / 1.309 GB, free: 11.79 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002566/1.422, allocations: 85.31 kB / 1.309 GB, free: 11.78 MB / 1.014 GB Notification: Performance of SimCode: time 4.21e-07/1.422, allocations: 0 / 1.309 GB, free: 11.78 MB / 1.014 GB Notification: Performance of Templates: time 0.03403/1.456, allocations: 21.95 MB / 1.331 GB, free: 6.828 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches