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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001091/0.001091, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.326/1.326, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.694/2.694, allocations: 469.4 MB / 0.742 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 61.97 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2681, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor): time 0.002967/0.2711, allocations: 2.044 MB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002122/0.2732, allocations: 1.666 MB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.632e-05/0.2733, allocations: 4 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.223e-05/0.2734, allocations: 15.8 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.932e-05/0.2735, allocations: 51.55 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008734/0.2744, allocations: 354.8 kB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.2746, allocations: 219.1 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.2747, allocations: 53.45 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.142e-05/0.2748, allocations: 75.78 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.2749, allocations: 87.73 kB / 1.068 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.157e-05/0.275, allocations: 16 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006878/0.2757, allocations: 407.5 kB / 1.069 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.05e-05/0.2757, allocations: 43.83 kB / 1.069 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.854e-05/0.2758, allocations: 83.66 kB / 1.069 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005091/0.2763, allocations: 431.2 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2763, allocations: 0 / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2764, allocations: 0 / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.2764, allocations: 0 / 1.069 GB, free: 8.961 MB / 0.8262 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.0007681/0.2771, allocations: 0.5186 MB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.2772, allocations: 8.031 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.627e-05/0.2772, allocations: 54.73 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005578/0.2778, allocations: 84.69 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.2779, allocations: 184.1 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.687e-05/0.278, allocations: 50.25 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.682e-05/0.2781, allocations: 16.38 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003902/0.2785, allocations: 182.3 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.2785, allocations: 4 kB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/0.2785, allocations: 4 kB / 1.07 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.2785, allocations: 4 kB / 1.07 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/0.279, allocations: 180.5 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.2803, allocations: 0.9151 MB / 1.071 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004978/0.2808, allocations: 162.6 kB / 1.071 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002027/0.2811, allocations: 84.77 kB / 1.071 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006628/0.2817, allocations: 0.522 MB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.2818, allocations: 30.56 kB / 1.072 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.2818, allocations: 4 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0007295/0.2825, allocations: 245.1 kB / 1.072 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.946e-05/0.2826, allocations: 55.41 kB / 1.072 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.2827, allocations: 164.9 kB / 1.072 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.2827, allocations: 25.7 kB / 1.072 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.264e-05/0.2828, allocations: 123.7 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.484e-05/0.2829, allocations: 43.36 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.346e-05/0.2829, allocations: 37.7 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.2831, allocations: 322.8 kB / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.2833, allocations: 75.95 kB / 1.073 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002179/0.2835, allocations: 90.7 kB / 1.073 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.2839, allocations: 163.7 kB / 1.073 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.2839, allocations: 4 kB / 1.073 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000489/0.2844, allocations: 209.4 kB / 1.073 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.2844, allocations: 4 kB / 1.073 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.2844, allocations: 12.02 kB / 1.073 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.2845, allocations: 0 / 1.073 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.2847, allocations: 39.97 kB / 1.073 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2847, allocations: 0 / 1.073 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.2849, allocations: 23.77 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.2849, allocations: 12 kB / 1.074 GB, free: 3.93 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.0001049/0.2851, allocations: 130.2 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.796e-05/0.2851, allocations: 19.81 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005135/0.2856, allocations: 190.4 kB / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.2856, allocations: 0 / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2857, allocations: 0 / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.2857, allocations: 7.984 kB / 1.074 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/0.2871, allocations: 0.9817 MB / 1.075 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2871, allocations: 64 / 1.075 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002005/0.2873, allocations: 31.97 kB / 1.075 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.2874, allocations: 4 kB / 1.075 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.2874, allocations: 0 / 1.075 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.2874, allocations: 0 / 1.075 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.2874, allocations: 4 kB / 1.075 GB, free: 2.398 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004972/0.2879, allocations: 289 kB / 1.075 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.632e-05/0.2879, allocations: 88.95 kB / 1.075 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.288, allocations: 7.984 kB / 1.075 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.2882, allocations: 11.98 kB / 1.075 GB, free: 1.969 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/0.2883, allocations: 19.92 kB / 1.075 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.2883, allocations: 7.938 kB / 1.075 GB, free: 1.941 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.089e-05/0.2884, allocations: 121.9 kB / 1.075 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2884, allocations: 0 / 1.075 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004509/0.2888, allocations: 131.8 kB / 1.076 GB, free: 1.695 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.001141/0.29, allocations: 0.9426 MB / 1.076 GB, free: 0.7227 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005391/0.2905, allocations: 185.7 kB / 1.077 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.85e-06/0.2906, allocations: 0 / 1.077 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002138/0.2908, allocations: 83.84 kB / 1.077 GB, free: 472 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.2912, allocations: 48.66 kB / 1.077 GB, free: 424 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.294, allocations: 2.054 MB / 1.079 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.2943, allocations: 0.7125 MB / 1.079 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001563/0.2944, allocations: 24.42 kB / 1.079 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.165e-05/0.2945, allocations: 43.41 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.2945, allocations: 4 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.3183, allocations: 5.991 MB / 1.085 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.42/7.738, allocations: 12.73 kB / 1.085 GB, free: 7.625 MB / 0.8419 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 & python3 -m fmpy simulate --output-file Buildings_latest_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_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.csv","/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