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.008594/0.008595, allocations: 101.5 kB / 15.73 MB, free: 6.059 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.002007/0.002007, allocations: 194.8 kB / 16.68 MB, free: 5.969 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.29/1.29, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.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.462/2.462, allocations: 437 MB / 0.7105 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.89 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2861, allocations: 151.6 MB / 1.166 GB, free: 7.305 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor): time 0.003391/0.2895, allocations: 2.032 MB / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002378/0.2919, allocations: 1.656 MB / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.56e-05/0.2921, allocations: 0 / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 7.057e-05/0.2922, allocations: 19.84 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.2923, allocations: 51.48 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.2934, allocations: 362.8 kB / 1.17 GB, free: 3.164 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002495/0.2937, allocations: 227 kB / 1.17 GB, free: 2.941 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.2938, allocations: 49.45 kB / 1.17 GB, free: 2.887 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.294, allocations: 79.84 kB / 1.171 GB, free: 2.809 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.2941, allocations: 91.66 kB / 1.171 GB, free: 2.719 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.57e-05/0.2942, allocations: 20 kB / 1.171 GB, free: 2.699 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007913/0.295, allocations: 407.5 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.284e-05/0.295, allocations: 43.89 kB / 1.171 GB, free: 2.258 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.517e-05/0.2951, allocations: 87.66 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0006554/0.2958, allocations: 430.8 kB / 1.172 GB, free: 1.75 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2958, allocations: 0 / 1.172 GB, free: 1.75 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2958, allocations: 0 / 1.172 GB, free: 1.75 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.252e-05/0.2958, allocations: 4 kB / 1.172 GB, free: 1.746 MB / 0.92 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.0008399/0.2967, allocations: 0.5179 MB / 1.172 GB, free: 1.176 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.2967, allocations: 12.03 kB / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.724e-05/0.2968, allocations: 50.73 kB / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005699/0.2973, allocations: 92.73 kB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.2975, allocations: 180.2 kB / 1.172 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.382e-05/0.2976, allocations: 50.25 kB / 1.172 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.311e-05/0.2976, allocations: 12.38 kB / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.2981, allocations: 190.9 kB / 1.173 GB, free: 0.543 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.2981, allocations: 0 / 1.173 GB, free: 0.543 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.2981, allocations: 12 kB / 1.173 GB, free: 0.5312 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.2981, allocations: 4 kB / 1.173 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004353/0.2986, allocations: 179.8 kB / 1.173 GB, free: 360 kB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.2999, allocations: 0.9227 MB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000491/0.3004, allocations: 166.6 kB / 1.174 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.3006, allocations: 84.77 kB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005869/0.3012, allocations: 0.5181 MB / 1.174 GB, free: 14.42 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.3012, allocations: 34.55 kB / 1.174 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.3012, allocations: 4 kB / 1.174 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0007334/0.302, allocations: 229.8 kB / 1.175 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.302, allocations: 51.41 kB / 1.175 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.3022, allocations: 164.7 kB / 1.175 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.688e-05/0.3022, allocations: 29.7 kB / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.202e-05/0.3023, allocations: 123.8 kB / 1.175 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.203e-05/0.3023, allocations: 55.56 kB / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.966e-05/0.3024, allocations: 41.66 kB / 1.175 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.3025, allocations: 322.8 kB / 1.175 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.3027, allocations: 71.91 kB / 1.176 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.303, allocations: 99.89 kB / 1.176 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003599/0.3033, allocations: 149.6 kB / 1.176 GB, free: 13 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3033, allocations: 0 / 1.176 GB, free: 13 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004858/0.3038, allocations: 220.1 kB / 1.176 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.3038, allocations: 8 kB / 1.176 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3039, allocations: 8.016 kB / 1.176 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.3039, allocations: 0 / 1.176 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.3041, allocations: 31.98 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3041, allocations: 7.922 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.3043, allocations: 27.88 kB / 1.176 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.3044, allocations: 4 kB / 1.176 GB, free: 12.7 MB / 0.9356 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.0001148/0.3045, allocations: 121.8 kB / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.857e-05/0.3045, allocations: 19.91 kB / 1.176 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005012/0.305, allocations: 201.9 kB / 1.176 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.305, allocations: 4 kB / 1.176 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3051, allocations: 0 / 1.176 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3051, allocations: 3.984 kB / 1.176 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.3065, allocations: 0.9817 MB / 1.177 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.3065, allocations: 3.984 kB / 1.177 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001907/0.3067, allocations: 28.05 kB / 1.177 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.3067, allocations: 4 kB / 1.177 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.3067, allocations: 4 kB / 1.177 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.3067, allocations: 11.92 kB / 1.177 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3067, allocations: 0 / 1.177 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004649/0.3072, allocations: 289.1 kB / 1.178 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-05/0.3073, allocations: 89.02 kB / 1.178 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.3073, allocations: 4 kB / 1.178 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.3075, allocations: 15.98 kB / 1.178 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.157e-05/0.3076, allocations: 11.92 kB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.3076, allocations: 11.98 kB / 1.178 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.666e-05/0.3077, allocations: 126.5 kB / 1.178 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3077, allocations: 3.938 kB / 1.178 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004273/0.3081, allocations: 127.5 kB / 1.178 GB, free: 10.45 MB / 0.9356 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.001057/0.3092, allocations: 0.9497 MB / 1.179 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004613/0.3096, allocations: 171.8 kB / 1.179 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3097, allocations: 3.938 kB / 1.179 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.3099, allocations: 83.89 kB / 1.179 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004114/0.3103, allocations: 44.11 kB / 1.179 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002635/0.3129, allocations: 2.062 MB / 1.181 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.3132, allocations: 0.7086 MB / 1.182 GB, free: 6.277 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001473/0.3133, allocations: 32.8 kB / 1.182 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.767e-05/0.3135, allocations: 39.42 kB / 1.182 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.3135, allocations: 0 / 1.182 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02144/0.3349, allocations: 6.058 MB / 1.188 GB, free: 344 kB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.359/7.694, allocations: 14.41 kB / 1.188 GB, free: 332 kB / 0.9356 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 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.csv","/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