Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.PPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senPPMTwoPort.ppm|senPPMNoRev.ppm|senPPMVol.ppm|senPPMRev.ppm|senPPMSta.ppm|senPPMIn.ppm|senPPMVol2.ppm",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM") translateModel(Buildings.Fluid.Sensors.Examples.PPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senPPMTwoPort.ppm|senPPMNoRev.ppm|senPPMVol.ppm|senPPMRev.ppm|senPPMSta.ppm|senPPMIn.ppm|senPPMVol2.ppm",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.347/2.347, allocations: 390.3 MB / 402.8 MB, free: 6.738 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 180.9 kB / 496.1 MB, free: 12.9 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.676/1.676, allocations: 221.3 MB / 0.7915 GB, free: 5.461 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 91.88 kB / 0.9317 GB, free: 5.785 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.45e-05/3.454e-05, allocations: 7.984 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3658, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.631/5.997, allocations: 1.939 GB / 3.158 GB, free: 319.7 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/5.997, allocations: 85.58 kB / 3.158 GB, free: 319.6 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 4.783/10.78, allocations: 1.3 GB / 4.458 GB, free: 198.8 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.352e-06/10.78, allocations: 0 / 4.458 GB, free: 198.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001316/10.78, allocations: 55.14 kB / 4.458 GB, free: 198.8 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 325 * Number of variables: 325 Notification: Performance of Generate backend data structure: time 0.005174/10.79, allocations: 1.82 MB / 4.46 GB, free: 198.1 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/10.79, allocations: 9.766 kB / 4.46 GB, free: 198.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002777/10.79, allocations: 393.7 kB / 4.46 GB, free: 198 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002755/10.79, allocations: 1.148 MB / 4.461 GB, free: 197.7 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.715e-05/10.79, allocations: 101.3 kB / 4.462 GB, free: 197.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002114/10.79, allocations: 140.2 kB / 4.462 GB, free: 197.7 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002518/10.79, allocations: 1.491 MB / 4.463 GB, free: 197.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.271e-05/10.79, allocations: 3.953 kB / 4.463 GB, free: 197.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/10.79, allocations: 59.86 kB / 4.463 GB, free: 197.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.287e-05/10.79, allocations: 48.67 kB / 4.463 GB, free: 197.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001988/10.8, allocations: 1.202 MB / 4.464 GB, free: 197.5 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or 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.009538/10.81, allocations: 6.548 MB / 4.471 GB, free: 194.2 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/10.81, allocations: 0.9259 MB / 4.472 GB, free: 194.1 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005907/10.81, allocations: 459.9 kB / 4.472 GB, free: 194.1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006222/10.81, allocations: 411.8 kB / 4.473 GB, free: 193.8 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/10.81, allocations: 43.94 kB / 4.473 GB, free: 193.7 MB / 1.167 GB Notification: Performance of pre-optimization done (n=82): time 3.487e-06/10.81, allocations: 0 / 4.473 GB, free: 193.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=84): time 0.005191/10.81, allocations: 2.293 MB / 4.475 GB, free: 193.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/10.81, allocations: 62.12 kB / 4.475 GB, free: 193.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/10.82, allocations: 1.027 MB / 4.476 GB, free: 192.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001038/10.82, allocations: 44.39 kB / 4.476 GB, free: 192.9 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004725/10.82, allocations: 0.6855 MB / 4.477 GB, free: 192.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/10.82, allocations: 295.2 kB / 4.477 GB, free: 192.5 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.065e-05/10.82, allocations: 21.69 kB / 4.477 GB, free: 192.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001028/10.82, allocations: 348.7 kB / 4.477 GB, free: 192.2 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004861/10.82, allocations: 357.6 kB / 4.478 GB, free: 192.2 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006942/10.82, allocations: 0.7235 MB / 4.478 GB, free: 191.8 MB / 1.167 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: volDyn.dynBal.medium.p = volDyn.dynBal.p_start (sin.p = volDyn.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/10.83, allocations: 2.336 MB / 4.481 GB, free: 191.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/10.83, allocations: 7.406 kB / 4.481 GB, free: 191.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002557/10.83, allocations: 1.285 MB / 4.482 GB, free: 191.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 3.87e-05/10.83, allocations: 15.52 kB / 4.482 GB, free: 191.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/10.83, allocations: 7.562 kB / 4.482 GB, free: 191.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004204/10.83, allocations: 150.5 kB / 4.482 GB, free: 191.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007534/10.83, allocations: 202.8 kB / 4.482 GB, free: 191.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003616/10.84, allocations: 4.777 MB / 4.487 GB, free: 187.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002211/10.84, allocations: 113.9 kB / 4.487 GB, free: 187.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/10.84, allocations: 50.66 kB / 4.487 GB, free: 187.5 MB / 1.167 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: volDyn.dynBal.medium.p = volDyn.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003048/10.84, allocations: 170.6 kB / 4.487 GB, free: 187.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002642/10.84, allocations: 144 kB / 4.487 GB, free: 187.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/10.84, allocations: 1.101 MB / 4.488 GB, free: 187.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/10.84, allocations: 6.156 kB / 4.488 GB, free: 187.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/10.84, allocations: 4.281 kB / 4.488 GB, free: 187.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001299/10.84, allocations: 1.048 MB / 4.489 GB, free: 187 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005002/10.85, allocations: 3.074 MB / 4.492 GB, free: 186.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/10.85, allocations: 7.344 kB / 4.492 GB, free: 186.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006671/10.85, allocations: 158.1 kB / 4.493 GB, free: 186.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003143/10.85, allocations: 136.6 kB / 4.493 GB, free: 186.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.957e-05/10.85, allocations: 23.75 kB / 4.493 GB, free: 186.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002938/10.85, allocations: 4.776 MB / 4.497 GB, free: 182.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/10.85, allocations: 10.69 kB / 4.497 GB, free: 182.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002644/10.85, allocations: 2.071 MB / 4.499 GB, free: 181.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008267/10.85, allocations: 313.4 kB / 4.5 GB, free: 180.9 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/10.85, allocations: 26.59 kB / 4.5 GB, free: 180.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000933/10.86, allocations: 84.47 kB / 4.5 GB, free: 180.9 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/10.86, allocations: 74.27 kB / 4.5 GB, free: 180.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.208e-05/10.86, allocations: 34.94 kB / 4.5 GB, free: 180.9 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001213/10.86, allocations: 0.8212 MB / 4.501 GB, free: 180.8 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.61e-07/10.86, allocations: 0 / 4.501 GB, free: 180.8 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0028/10.86, allocations: 0.6337 MB / 4.501 GB, free: 180.8 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (volDyn.dynBal.medium.Xi[1],volDyn.dynBal.U,volDyn.dynBal.mC[1],senPPMTwoPort.C,senPPMNoRev.C,senPPMRev.C) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004143/10.86, allocations: 2.434 MB / 4.504 GB, free: 179.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002125/10.87, allocations: 1.24 MB / 4.505 GB, free: 179.5 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/10.87, allocations: 0 / 4.505 GB, free: 179.5 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008684/10.87, allocations: 0.7715 MB / 4.506 GB, free: 179.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004411/10.87, allocations: 0.8389 MB / 4.507 GB, free: 179.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00411/10.88, allocations: 2.274 MB / 4.509 GB, free: 178.4 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008055/10.88, allocations: 1.385 MB / 4.51 GB, free: 177.7 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001616/10.88, allocations: 358.2 kB / 4.51 GB, free: 177.7 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000305/10.88, allocations: 115.3 kB / 4.511 GB, free: 177.7 MB / 1.167 GB Notification: Performance of SimCode: time 1.403e-06/10.88, allocations: 0 / 4.511 GB, free: 177.7 MB / 1.167 GB Notification: Performance of Templates: time 0.09183/10.97, allocations: 62.43 MB / 4.572 GB, free: 175.4 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_PPM.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.PPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches