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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Compressors_Validation_ReciprocatingCompressor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Compressors_Validation_ReciprocatingCompressor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.001156, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001304/0.001304, allocations: 193.6 kB / 16.14 MB, free: 6.711 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.366/1.366, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.55/2.55, allocations: 461.9 MB / 0.7342 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 72.69 kB / 0.8985 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.248, allocations: 157.4 MB / 1.052 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor): time 0.003054/0.2511, allocations: 2.09 MB / 1.054 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002265/0.2534, allocations: 1.745 MB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.525e-05/0.2534, allocations: 0 / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.217e-05/0.2535, allocations: 19.84 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.792e-05/0.2536, allocations: 35.69 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007953/0.2544, allocations: 295.2 kB / 1.056 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002003/0.2546, allocations: 215.1 kB / 1.056 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.2548, allocations: 45.39 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.39e-05/0.2549, allocations: 75.77 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.255, allocations: 83.69 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.255, allocations: 12 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006822/0.2557, allocations: 391.5 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.696e-05/0.2558, allocations: 35.91 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.939e-05/0.2559, allocations: 79.66 kB / 1.057 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005462/0.2564, allocations: 423.2 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2564, allocations: 7.938 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.42e-07/0.2564, allocations: 4 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.2565, allocations: 0 / 1.058 GB, free: 2.699 MB / 0.8106 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.0007531/0.2572, allocations: 0.5109 MB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.2573, allocations: 11.97 kB / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.62e-05/0.2573, allocations: 50.73 kB / 1.058 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005231/0.2578, allocations: 88.64 kB / 1.058 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.258, allocations: 188.1 kB / 1.058 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.053e-05/0.2581, allocations: 46.25 kB / 1.058 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.081e-05/0.2581, allocations: 20.38 kB / 1.058 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003901/0.2585, allocations: 185.8 kB / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.2585, allocations: 4 kB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.2585, allocations: 4 kB / 1.059 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.2585, allocations: 4 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000412/0.259, allocations: 175.9 kB / 1.059 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.2603, allocations: 0.9149 MB / 1.06 GB, free: 284 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004577/0.2608, allocations: 174.5 kB / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.2609, allocations: 76.83 kB / 1.06 GB, free: 20 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006496/0.2616, allocations: 0.5259 MB / 1.06 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.2616, allocations: 34.5 kB / 1.061 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.714e-06/0.2616, allocations: 0 / 1.061 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006914/0.2623, allocations: 240.4 kB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.2624, allocations: 59.41 kB / 1.061 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.2625, allocations: 161.3 kB / 1.061 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.2626, allocations: 29.7 kB / 1.061 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.994e-05/0.2626, allocations: 111.8 kB / 1.061 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.622e-05/0.2627, allocations: 47.36 kB / 1.061 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.029e-05/0.2628, allocations: 37.7 kB / 1.061 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.2629, allocations: 322.8 kB / 1.061 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.2631, allocations: 79.89 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.2633, allocations: 99.5 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.2637, allocations: 153.5 kB / 1.062 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2637, allocations: 0 / 1.062 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004742/0.2641, allocations: 215.8 kB / 1.062 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2642, allocations: 4 kB / 1.062 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2642, allocations: 4 kB / 1.062 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.2642, allocations: 3.984 kB / 1.062 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002413/0.2644, allocations: 35.97 kB / 1.062 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.2645, allocations: 0 / 1.062 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/0.2646, allocations: 27.77 kB / 1.062 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.2647, allocations: 12.03 kB / 1.062 GB, free: 13.66 MB / 0.8262 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 (com.isOn,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001129/0.2648, allocations: 133.7 kB / 1.062 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.373e-05/0.2648, allocations: 11.91 kB / 1.062 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004897/0.2653, allocations: 202.3 kB / 1.062 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.2653, allocations: 0 / 1.062 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2654, allocations: 7.984 kB / 1.062 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2654, allocations: 0 / 1.062 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001371/0.2667, allocations: 0.9701 MB / 1.063 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2668, allocations: 0 / 1.063 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.267, allocations: 31.97 kB / 1.063 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.267, allocations: 4 kB / 1.063 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.267, allocations: 0 / 1.063 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.267, allocations: 8 kB / 1.063 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.267, allocations: 3.938 kB / 1.063 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004733/0.2675, allocations: 289 kB / 1.064 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.283e-05/0.2675, allocations: 92.94 kB / 1.064 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.529e-05/0.2676, allocations: 8 kB / 1.064 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.2678, allocations: 11.98 kB / 1.064 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.416e-05/0.2678, allocations: 15.92 kB / 1.064 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.2679, allocations: 8 kB / 1.064 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.765e-05/0.2679, allocations: 115.2 kB / 1.064 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.403e-06/0.268, allocations: 4 kB / 1.064 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004139/0.2684, allocations: 131.7 kB / 1.064 GB, free: 11.43 MB / 0.8262 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 (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.001039/0.2694, allocations: 0.9394 MB / 1.065 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004509/0.2699, allocations: 179.8 kB / 1.065 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2699, allocations: 0 / 1.065 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.2701, allocations: 84.03 kB / 1.065 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000414/0.2705, allocations: 47.83 kB / 1.065 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002554/0.2731, allocations: 2.1 MB / 1.067 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.2733, allocations: 0.705 MB / 1.068 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001605/0.2735, allocations: 28.8 kB / 1.068 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.698e-05/0.2736, allocations: 43.42 kB / 1.068 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.2736, allocations: 0 / 1.068 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4641/0.7378, allocations: 5.764 MB / 1.074 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/0.738, allocations: 237.4 kB / 1.074 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.03/2.768, allocations: 4.125 kB / 1.074 GB, free: 1.328 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Compressors_Validation_ReciprocatingCompressor_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Compressors_Validation_ReciprocatingCompressor.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches