Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.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.HeatPumps.Compressors.Validation.ReciprocatingCompressor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|com.pDis|com.pSuc|com.P|heaFloEva.Q_flow|heaFloCon.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor") translateModel(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|com.pDis|com.pSuc|com.P|heaFloEva.Q_flow|heaFloCon.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.545/2.545, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001618/0.001618, allocations: 186.8 kB / 0.4902 GB, free: 2.258 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.701/1.701, allocations: 223.1 MB / 0.7992 GB, free: 14.61 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.001044/0.001043, allocations: 98.33 kB / 0.9396 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004218/0.0004219, allocations: 14.34 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3113, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2044/0.5158, allocations: 156.7 MB / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/0.5161, allocations: 87.94 kB / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02484/0.541, allocations: 8.236 MB / 1.39 GB, free: 4.449 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.094e-06/0.5411, allocations: 0 / 1.39 GB, free: 4.449 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.311e-05/0.5411, allocations: 4 kB / 1.39 GB, free: 4.445 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.00108/0.5422, allocations: 495 kB / 1.391 GB, free: 3.91 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.635e-05/0.5422, allocations: 12.56 kB / 1.391 GB, free: 3.898 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005844/0.5428, allocations: 91.67 kB / 1.391 GB, free: 3.809 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.5431, allocations: 178.9 kB / 1.391 GB, free: 3.594 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/0.5432, allocations: 53.69 kB / 1.391 GB, free: 3.535 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.166e-05/0.5432, allocations: 12 kB / 1.391 GB, free: 3.523 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005031/0.5437, allocations: 185.3 kB / 1.391 GB, free: 3.336 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.5438, allocations: 3.938 kB / 1.391 GB, free: 3.332 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.5438, allocations: 4 kB / 1.391 GB, free: 3.328 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.5438, allocations: 7.953 kB / 1.391 GB, free: 3.32 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005149/0.5443, allocations: 187.9 kB / 1.392 GB, free: 3.137 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.5461, allocations: 0.9382 MB / 1.392 GB, free: 2.07 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005397/0.5466, allocations: 186.5 kB / 1.393 GB, free: 1.879 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007946/0.5474, allocations: 0.5181 MB / 1.393 GB, free: 1.25 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.5475, allocations: 42.52 kB / 1.393 GB, free: 1.199 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 1.874e-06/0.5475, allocations: 0 / 1.393 GB, free: 1.199 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0007853/0.5483, allocations: 245.4 kB / 1.393 GB, free: 0.9531 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.5483, allocations: 51.41 kB / 1.393 GB, free: 0.8906 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.5485, allocations: 157.4 kB / 1.394 GB, free: 0.7344 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.5485, allocations: 29.7 kB / 1.394 GB, free: 0.6992 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.5487, allocations: 115.8 kB / 1.394 GB, free: 0.582 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.416e-05/0.5487, allocations: 43.36 kB / 1.394 GB, free: 0.5391 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.096e-05/0.5487, allocations: 0 / 1.394 GB, free: 0.5391 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5489, allocations: 326.8 kB / 1.394 GB, free: 216 kB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.5491, allocations: 75.95 kB / 1.394 GB, free: 140 kB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002115/0.5493, allocations: 102.5 kB / 1.394 GB, free: 32 kB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000226/0.5495, allocations: 76.98 kB / 1.394 GB, free: 15.95 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.5496, allocations: 0 / 1.394 GB, free: 15.95 MB / 0.9011 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005097/0.5501, allocations: 226.3 kB / 1.395 GB, free: 15.73 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.5501, allocations: 9.875 kB / 1.395 GB, free: 15.72 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.5501, allocations: 0 / 1.395 GB, free: 15.72 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.5501, allocations: 0 / 1.395 GB, free: 15.72 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.5504, allocations: 48 kB / 1.395 GB, free: 15.67 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.5504, allocations: 0 / 1.395 GB, free: 15.67 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.5506, allocations: 31.75 kB / 1.395 GB, free: 15.64 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.5507, allocations: 8 kB / 1.395 GB, free: 15.63 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.com.isOn,com.isOn) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001332/0.5508, allocations: 121.8 kB / 1.395 GB, free: 15.5 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.408e-05/0.5508, allocations: 19.77 kB / 1.395 GB, free: 15.48 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005271/0.5514, allocations: 206.7 kB / 1.395 GB, free: 15.28 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.5514, allocations: 3.938 kB / 1.395 GB, free: 15.28 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5514, allocations: 0 / 1.395 GB, free: 15.28 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.5514, allocations: 4 kB / 1.395 GB, free: 15.27 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.553, allocations: 0.9894 MB / 1.396 GB, free: 14.13 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.553, allocations: 0 / 1.396 GB, free: 14.13 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002215/0.5533, allocations: 31.97 kB / 1.396 GB, free: 14.1 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.5533, allocations: 4 kB / 1.396 GB, free: 14.1 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.5533, allocations: 0 / 1.396 GB, free: 14.1 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.5533, allocations: 4 kB / 1.396 GB, free: 14.09 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.5533, allocations: 0 / 1.396 GB, free: 14.09 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005431/0.5539, allocations: 327.9 kB / 1.396 GB, free: 13.74 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 8.799e-05/0.554, allocations: 100.8 kB / 1.396 GB, free: 13.62 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.559e-05/0.554, allocations: 4 kB / 1.396 GB, free: 13.62 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.5542, allocations: 19.97 kB / 1.396 GB, free: 13.6 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.5543, allocations: 15.94 kB / 1.396 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.5543, allocations: 8 kB / 1.396 GB, free: 13.58 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001019/0.5544, allocations: 119.2 kB / 1.397 GB, free: 13.46 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.523e-06/0.5544, allocations: 0 / 1.397 GB, free: 13.46 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0005563/0.555, allocations: 139.7 kB / 1.397 GB, free: 13.32 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (com.isOn) * Number of discrete states: 1 (com.isOn) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006409/0.5557, allocations: 235.8 kB / 1.397 GB, free: 13.08 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0005145/0.5562, allocations: 181.4 kB / 1.397 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.5562, allocations: 0 / 1.397 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0002185/0.5564, allocations: 92.08 kB / 1.397 GB, free: 12.82 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.5567, allocations: 35.92 kB / 1.397 GB, free: 12.78 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007556/0.5575, allocations: 385.4 kB / 1.398 GB, free: 12.37 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.5578, allocations: 0.7089 MB / 1.398 GB, free: 11.64 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.000183/0.558, allocations: 29.81 kB / 1.398 GB, free: 11.61 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.409e-05/0.5581, allocations: 23.44 kB / 1.398 GB, free: 11.58 MB / 0.9011 GB Notification: Performance of SimCode: time 4.51e-07/0.5581, allocations: 0 / 1.398 GB, free: 11.58 MB / 0.9011 GB Notification: Performance of Templates: time 0.00828/0.5664, allocations: 3.845 MB / 1.402 GB, free: 7.777 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Compressors_Validation_ReciprocatingCompressor.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches