Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatPumps_Compressors_Validation_ReciprocatingCompressor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor,fileNamePrefix="Buildings_10_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.004832/0.004832, allocations: 97.64 kB / 15.73 MB, free: 6.02 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.001394/0.001394, allocations: 192.1 kB / 16.67 MB, free: 5.93 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.229/2.229, allocations: 437.1 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 63.89 kB / 1.018 GB, free: 9.902 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5872/0.5889, allocations: 151.6 MB / 1.166 GB, free: 3.758 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor): time 0.002738/0.5916, allocations: 2.028 MB / 1.168 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002101/0.5938, allocations: 1.656 MB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.26e-05/0.5938, allocations: 7.938 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 5.568e-05/0.5939, allocations: 19.78 kB / 1.17 GB, free: 28 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.594, allocations: 55.55 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007749/0.5948, allocations: 356 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0002036/0.595, allocations: 219.2 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.5951, allocations: 49.47 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 9.263e-05/0.5952, allocations: 87.75 kB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.5954, allocations: 87.67 kB / 1.171 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.258e-05/0.5954, allocations: 20 kB / 1.171 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006771/0.5961, allocations: 411.5 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 4.114e-05/0.5961, allocations: 43.84 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 7.941e-05/0.5962, allocations: 87.66 kB / 1.171 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005169/0.5967, allocations: 418.4 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.5967, allocations: 0 / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5968, allocations: 4 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.5968, allocations: 0 / 1.172 GB, free: 14.22 MB / 0.9044 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.0007265/0.5975, allocations: 0.5295 MB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.5975, allocations: 8.922 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.23e-05/0.5976, allocations: 50.73 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005259/0.5981, allocations: 92.73 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.5983, allocations: 184.1 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.313e-05/0.5983, allocations: 50.2 kB / 1.172 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.5984, allocations: 12.38 kB / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/0.5987, allocations: 194.9 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.5988, allocations: 0 / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.5988, allocations: 4 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.5988, allocations: 4 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004198/0.5992, allocations: 179.9 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/0.6004, allocations: 0.9111 MB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004744/0.6009, allocations: 178.6 kB / 1.174 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.6011, allocations: 84.75 kB / 1.174 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006101/0.6017, allocations: 0.5259 MB / 1.174 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.6018, allocations: 30.56 kB / 1.175 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.6018, allocations: 0 / 1.175 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0006409/0.6024, allocations: 234.6 kB / 1.175 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.6025, allocations: 55.41 kB / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.6026, allocations: 165.1 kB / 1.175 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.6026, allocations: 29.7 kB / 1.175 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.955e-05/0.6027, allocations: 119.7 kB / 1.175 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.971e-05/0.6028, allocations: 47.58 kB / 1.175 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.432e-05/0.6028, allocations: 45.66 kB / 1.175 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.603, allocations: 322.8 kB / 1.175 GB, free: 9.793 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.6032, allocations: 75.95 kB / 1.176 GB, free: 9.719 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.6034, allocations: 95.56 kB / 1.176 GB, free: 9.621 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00036/0.6037, allocations: 151.6 kB / 1.176 GB, free: 9.469 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.6037, allocations: 0 / 1.176 GB, free: 9.469 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004723/0.6042, allocations: 217.5 kB / 1.176 GB, free: 9.25 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/0.6042, allocations: 8 kB / 1.176 GB, free: 9.242 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.6043, allocations: 0 / 1.176 GB, free: 9.242 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.6043, allocations: 0 / 1.176 GB, free: 9.242 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.6045, allocations: 39.91 kB / 1.176 GB, free: 9.203 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.6045, allocations: 4 kB / 1.176 GB, free: 9.199 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.6047, allocations: 27.91 kB / 1.176 GB, free: 9.172 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.6047, allocations: 7.984 kB / 1.176 GB, free: 9.164 MB / 0.9044 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.0001018/0.6048, allocations: 131.9 kB / 1.176 GB, free: 9.027 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.114e-05/0.6049, allocations: 11.91 kB / 1.176 GB, free: 9.016 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004797/0.6053, allocations: 199.7 kB / 1.176 GB, free: 8.816 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.6054, allocations: 4 kB / 1.176 GB, free: 8.812 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.6054, allocations: 0 / 1.176 GB, free: 8.812 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.6054, allocations: 0 / 1.176 GB, free: 8.812 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.6067, allocations: 0.9933 MB / 1.177 GB, free: 7.664 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.6067, allocations: 0 / 1.177 GB, free: 7.664 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.6069, allocations: 31.98 kB / 1.177 GB, free: 7.633 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.6069, allocations: 0 / 1.177 GB, free: 7.633 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.607, allocations: 7.984 kB / 1.177 GB, free: 7.625 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.607, allocations: 0 / 1.177 GB, free: 7.625 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.607, allocations: 0 / 1.177 GB, free: 7.625 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004708/0.6074, allocations: 294.6 kB / 1.178 GB, free: 7.316 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.096e-05/0.6075, allocations: 89.02 kB / 1.178 GB, free: 7.211 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.6075, allocations: 8 kB / 1.178 GB, free: 7.203 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.6077, allocations: 23.97 kB / 1.178 GB, free: 7.18 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.285e-05/0.6078, allocations: 11.92 kB / 1.178 GB, free: 7.168 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.6078, allocations: 11.94 kB / 1.178 GB, free: 7.156 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.215e-05/0.6079, allocations: 121.7 kB / 1.178 GB, free: 7.039 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.6079, allocations: 0 / 1.178 GB, free: 7.039 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003579/0.6083, allocations: 123.6 kB / 1.178 GB, free: 6.918 MB / 0.9044 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.001006/0.6093, allocations: 0.9517 MB / 1.179 GB, free: 5.934 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004437/0.6097, allocations: 171.9 kB / 1.179 GB, free: 5.766 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.6097, allocations: 4 kB / 1.179 GB, free: 5.762 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001982/0.6099, allocations: 87.95 kB / 1.179 GB, free: 5.676 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.6103, allocations: 37.03 kB / 1.179 GB, free: 5.641 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.6128, allocations: 2.081 MB / 1.181 GB, free: 3.461 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.6131, allocations: 0.7047 MB / 1.182 GB, free: 2.73 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001196/0.6132, allocations: 29.8 kB / 1.182 GB, free: 2.707 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.788e-05/0.6133, allocations: 39.42 kB / 1.182 GB, free: 2.668 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.6133, allocations: 4 kB / 1.182 GB, free: 2.664 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.273/3.886, allocations: 6.038 MB / 1.188 GB, free: 12.8 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.92/20.8, allocations: 27.56 kB / 1.188 GB, free: 12.77 MB / 0.92 GB (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatPumps_Compressors_Validation_ReciprocatingCompressor_fmu --startTime=0 --stopTime=100 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatPumps_Compressors_Validation_ReciprocatingCompressor.fmu > Buildings_10_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatPumps_Compressors_Validation_ReciprocatingCompressor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches