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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.007265/0.007265, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001708/0.001708, allocations: 201.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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.641/2.641, allocations: 469.4 MB / 0.7422 GB, free: 7.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 67.83 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3275, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor): time 0.003525/0.3311, allocations: 2.036 MB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002546/0.3337, allocations: 1.655 MB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.3339, allocations: 4 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 7.662e-05/0.3339, allocations: 19.8 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.3341, allocations: 47.55 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.3353, allocations: 354.8 kB / 1.224 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002724/0.3356, allocations: 223.1 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.3357, allocations: 57.45 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001527/0.3359, allocations: 75.78 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.3361, allocations: 87.72 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.448e-05/0.3361, allocations: 20 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008819/0.337, allocations: 415.5 kB / 1.225 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.059e-05/0.3371, allocations: 47.77 kB / 1.225 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.567e-05/0.3372, allocations: 87.66 kB / 1.225 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006747/0.3378, allocations: 426.7 kB / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.3379, allocations: 0 / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3379, allocations: 0 / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.06e-05/0.3379, allocations: 0 / 1.225 GB, free: 9.117 MB / 0.9825 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.0009089/0.3388, allocations: 0.5334 MB / 1.226 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.3388, allocations: 12.03 kB / 1.226 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.211e-05/0.3389, allocations: 50.73 kB / 1.226 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005885/0.3395, allocations: 92.73 kB / 1.226 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.3397, allocations: 176.2 kB / 1.226 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.631e-05/0.3398, allocations: 50.25 kB / 1.226 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.831e-05/0.3398, allocations: 12.38 kB / 1.226 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004153/0.3402, allocations: 182.3 kB / 1.226 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.3402, allocations: 0 / 1.226 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/0.3403, allocations: 8 kB / 1.226 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.3403, allocations: 8 kB / 1.226 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004572/0.3407, allocations: 176.5 kB / 1.226 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.3421, allocations: 0.9306 MB / 1.227 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005126/0.3427, allocations: 166.6 kB / 1.227 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/0.3429, allocations: 76.83 kB / 1.228 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007097/0.3436, allocations: 0.522 MB / 1.228 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.3436, allocations: 38.5 kB / 1.228 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.613e-06/0.3436, allocations: 0 / 1.228 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0007166/0.3444, allocations: 240.9 kB / 1.228 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.3444, allocations: 55.34 kB / 1.228 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/0.3446, allocations: 164.5 kB / 1.229 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.3447, allocations: 25.7 kB / 1.229 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.319e-05/0.3448, allocations: 119.9 kB / 1.229 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.509e-05/0.3448, allocations: 51.52 kB / 1.229 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.977e-05/0.3449, allocations: 37.7 kB / 1.229 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.345, allocations: 326.8 kB / 1.229 GB, free: 4.688 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.3452, allocations: 75.95 kB / 1.229 GB, free: 4.613 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.3455, allocations: 93.61 kB / 1.229 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/0.3458, allocations: 151.1 kB / 1.229 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3459, allocations: 4 kB / 1.229 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005098/0.3464, allocations: 219.2 kB / 1.23 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.3464, allocations: 8 kB / 1.23 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3464, allocations: 3.984 kB / 1.23 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.3464, allocations: 0 / 1.23 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00025/0.3467, allocations: 39.97 kB / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.3467, allocations: 3.984 kB / 1.23 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.3469, allocations: 27.91 kB / 1.23 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.347, allocations: 11.98 kB / 1.23 GB, free: 4.047 MB / 0.9825 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.0001433/0.3471, allocations: 125.7 kB / 1.23 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.94e-05/0.3472, allocations: 15.91 kB / 1.23 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005468/0.3477, allocations: 198.4 kB / 1.23 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.3477, allocations: 4 kB / 1.23 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3477, allocations: 3.938 kB / 1.23 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3478, allocations: 0 / 1.23 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.3493, allocations: 0.9817 MB / 1.231 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3493, allocations: 0 / 1.231 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001973/0.3495, allocations: 27.97 kB / 1.231 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.3495, allocations: 4 kB / 1.231 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.3495, allocations: 0 / 1.231 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.3495, allocations: 4.062 kB / 1.231 GB, free: 2.516 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3496, allocations: 4 kB / 1.231 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005082/0.3501, allocations: 289 kB / 1.231 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.885e-05/0.3501, allocations: 93 kB / 1.231 GB, free: 2.098 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.623e-05/0.3502, allocations: 12 kB / 1.231 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.3504, allocations: 11.98 kB / 1.231 GB, free: 2.074 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.588e-05/0.3505, allocations: 15.92 kB / 1.231 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.3505, allocations: 4 kB / 1.231 GB, free: 2.055 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.175e-05/0.3506, allocations: 122.1 kB / 1.232 GB, free: 1.938 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3506, allocations: 0 / 1.232 GB, free: 1.938 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004863/0.3511, allocations: 123.6 kB / 1.232 GB, free: 1.816 MB / 0.9825 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.001199/0.3523, allocations: 0.9556 MB / 1.233 GB, free: 0.8281 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005344/0.3528, allocations: 188.7 kB / 1.233 GB, free: 0.6445 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3528, allocations: 0 / 1.233 GB, free: 0.6445 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.353, allocations: 79.91 kB / 1.233 GB, free: 0.5664 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004638/0.3535, allocations: 48.3 kB / 1.233 GB, free: 0.5234 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.3564, allocations: 2.069 MB / 1.235 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.3567, allocations: 0.7125 MB / 1.236 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001468/0.3568, allocations: 25.55 kB / 1.236 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.3569, allocations: 43.42 kB / 1.236 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of SimCode: time 3.11e-07/0.3569, allocations: 0 / 1.236 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.3813, allocations: 6.055 MB / 1.242 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.365/7.746, allocations: 7.938 kB / 1.242 GB, free: 7.672 MB / 0.9981 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