Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001077/0.001077, allocations: 99.34 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 184.3 kB / 16.92 MB, free: 6.895 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.365/1.365, allocations: 223.3 MB / 241 MB, free: 5.336 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.634/2.634, allocations: 437.8 MB / 0.7128 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003756/0.0003757, allocations: 12 kB / 0.8735 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6942/0.6946, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2157/0.9104, allocations: 189.1 MB / 1.208 GB, free: 2.07 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01125/0.9216, allocations: 6.928 MB / 1.215 GB, free: 11.13 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.9234, allocations: 39.69 kB / 1.215 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001897/0.9253, allocations: 0.5632 MB / 1.216 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.006276/0.9316, allocations: 2.179 MB / 1.218 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.9352, allocations: 1.296 MB / 1.219 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.005213/0.9404, allocations: 3.742 MB / 1.223 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001666/0.9421, allocations: 0.7676 MB / 1.224 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00224/0.9443, allocations: 0.9569 MB / 1.224 GB, free: 1.562 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002075/0.9464, allocations: 0.7982 MB / 1.225 GB, free: 0.7656 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002227/0.9467, allocations: 40 kB / 1.225 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004117/0.9508, allocations: 2.213 MB / 1.227 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004717/0.9513, allocations: 306.9 kB / 1.228 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0007531/0.952, allocations: 0.5495 MB / 1.228 GB, free: 13.65 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002284/0.9543, allocations: 1.734 MB / 1.23 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.9543, allocations: 3.938 kB / 1.23 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.044e-06/0.9544, allocations: 0 / 1.23 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.256e-05/0.9544, allocations: 0 / 1.23 GB, free: 11.91 MB / 0.9825 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.00298/0.9574, allocations: 1.387 MB / 1.231 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.9574, allocations: 12.03 kB / 1.231 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002991/0.9604, allocations: 0.6112 MB / 1.232 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/0.9624, allocations: 0.9958 MB / 1.233 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001239/0.9636, allocations: 309.1 kB / 1.233 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.9638, allocations: 68 kB / 1.233 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002481/0.9663, allocations: 1.159 MB / 1.234 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.9663, allocations: 4 kB / 1.234 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.023e-05/0.9664, allocations: 28 kB / 1.234 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-05/0.9664, allocations: 29.31 kB / 1.234 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003261/0.9697, allocations: 1.25 MB / 1.236 GB, free: 5.926 MB / 0.9825 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.005684/0.9754, allocations: 3.244 MB / 1.239 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.9771, allocations: 0.7036 MB / 1.24 GB, free: 1.891 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008141/0.9779, allocations: 438 kB / 1.24 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008743/0.9788, allocations: 1.021 MB / 1.241 GB, free: 224 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009926/0.9798, allocations: 0.5144 MB / 1.241 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=57): time 2.244e-06/0.9798, allocations: 0 / 1.241 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of matching and sorting (n=57): time 0.002921/0.9828, allocations: 1.252 MB / 1.243 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.711e-05/0.9828, allocations: 144.8 kB / 1.243 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/0.9848, allocations: 1.219 MB / 1.244 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.778e-05/0.9849, allocations: 33.7 kB / 1.244 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003629/0.9853, allocations: 441.3 kB / 1.244 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.9855, allocations: 197.2 kB / 1.245 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.553e-05/0.9856, allocations: 53.69 kB / 1.245 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.9857, allocations: 330 kB / 1.245 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/0.9871, allocations: 484.9 kB / 1.245 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.9886, allocations: 0.6406 MB / 1.246 GB, free: 10.78 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002163/0.9908, allocations: 0.9809 MB / 1.247 GB, free: 9.75 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.9908, allocations: 0 / 1.247 GB, free: 9.75 MB / 0.9981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00328/0.9941, allocations: 1.287 MB / 1.248 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.9941, allocations: 37.69 kB / 1.248 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.9941, allocations: 4.281 kB / 1.248 GB, free: 8.398 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.9942, allocations: 8 kB / 1.248 GB, free: 8.391 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009826/0.9951, allocations: 215.7 kB / 1.249 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.9952, allocations: 15.86 kB / 1.249 GB, free: 8.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.9968, allocations: 304.5 kB / 1.249 GB, free: 7.867 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.61e-05/0.9969, allocations: 39.95 kB / 1.249 GB, free: 7.828 MB / 0.9981 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.0004858/0.9974, allocations: 331.3 kB / 1.249 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.9976, allocations: 114.6 kB / 1.249 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002127/0.9997, allocations: 1.011 MB / 1.25 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.9997, allocations: 7.938 kB / 1.25 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.9998, allocations: 7.938 kB / 1.25 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.9998, allocations: 7.984 kB / 1.25 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004672/1.004, allocations: 3.175 MB / 1.253 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/1.004, allocations: 8.094 kB / 1.253 GB, free: 3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000589/1.005, allocations: 123.8 kB / 1.254 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/1.005, allocations: 8 kB / 1.254 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.357e-05/1.005, allocations: 27.98 kB / 1.254 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.063e-05/1.005, allocations: 15.94 kB / 1.254 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/1.005, allocations: 11.94 kB / 1.254 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/1.007, allocations: 1.357 MB / 1.255 GB, free: 1.34 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004545/1.008, allocations: 327.4 kB / 1.255 GB, free: 1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/1.008, allocations: 23.98 kB / 1.255 GB, free: 0.9766 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/1.009, allocations: 131.9 kB / 1.255 GB, free: 0.8477 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.923e-05/1.009, allocations: 63.7 kB / 1.255 GB, free: 0.7852 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.422e-05/1.009, allocations: 35.97 kB / 1.256 GB, free: 0.75 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.5467/1.556, allocations: 0.8881 MB / 1.256 GB, free: 34.71 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7.62e-07/1.556, allocations: 0.9688 kB / 1.256 GB, free: 34.71 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001517/1.558, allocations: 299 kB / 1.257 GB, free: 34.71 MB / 0.9981 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.0007124/1.558, allocations: 343.2 kB / 1.257 GB, free: 34.62 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002713/1.561, allocations: 1.052 MB / 1.258 GB, free: 34.56 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/1.561, allocations: 1.625 kB / 1.258 GB, free: 34.56 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009892/1.562, allocations: 0.5268 MB / 1.259 GB, free: 34.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00391/1.566, allocations: 0.5365 MB / 1.259 GB, free: 34.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00383/1.57, allocations: 2.414 MB / 1.261 GB, free: 33.33 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006775/1.57, allocations: 1.065 MB / 1.262 GB, free: 32.62 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/1.571, allocations: 92.22 kB / 1.263 GB, free: 32.62 MB / 0.9981 GB Notification: Performance of SimCode: time 8.31e-07/1.571, allocations: 0 / 1.263 GB, free: 32.62 MB / 0.9981 GB Notification: Performance of Templates: time 0.03449/1.605, allocations: 18.56 MB / 1.281 GB, free: 30.95 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches