Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: translateModel(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|com.pDis|com.pSuc|com.P|heaFloEva.Q_flow|heaFloCon.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor") translateModel(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|com.pDis|com.pSuc|com.P|heaFloEva.Q_flow|heaFloCon.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 98.56 kB / 16.02 MB, free: 76 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.001954/0.001955, allocations: 188.2 kB / 16.92 MB, free: 6.75 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.415/1.415, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.498/2.498, allocations: 390.9 MB / 0.667 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004008/0.000401, allocations: 8 kB / 0.8166 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8033/0.8037, allocations: 142.4 MB / 0.9557 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor): time 0.001998/0.8058, allocations: 1.731 MB / 0.9574 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002257/0.808, allocations: 1.711 MB / 0.9591 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.122e-05/0.8081, allocations: 1.5 kB / 0.9591 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.912e-05/0.8082, allocations: 14.58 kB / 0.9591 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.8083, allocations: 45.83 kB / 0.9591 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008916/0.8092, allocations: 286.5 kB / 0.9594 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002337/0.8094, allocations: 225.7 kB / 0.9596 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.8096, allocations: 40.19 kB / 0.9597 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.782e-05/0.8097, allocations: 70.03 kB / 0.9597 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.8098, allocations: 84.69 kB / 0.9598 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.8099, allocations: 10.88 kB / 0.9598 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007408/0.8106, allocations: 386.7 kB / 0.9602 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.657e-05/0.8107, allocations: 34.77 kB / 0.9602 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.282e-05/0.8108, allocations: 103.6 kB / 0.9603 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004079/0.8112, allocations: 312.7 kB / 0.9606 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.8112, allocations: 0 / 0.9606 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8112, allocations: 0 / 0.9606 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.89e-06/0.8112, allocations: 1.312 kB / 0.9606 GB, free: 4.047 MB / 0.7169 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.000707/0.8119, allocations: 0.4903 MB / 0.9611 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.812, allocations: 8.25 kB / 0.9611 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005878/0.8126, allocations: 98.28 kB / 0.9612 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.8127, allocations: 180.7 kB / 0.9614 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.346e-05/0.8128, allocations: 46.11 kB / 0.9614 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/0.8128, allocations: 18.09 kB / 0.9614 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004215/0.8132, allocations: 194.3 kB / 0.9616 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.8133, allocations: 3.938 kB / 0.9616 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.8133, allocations: 5.938 kB / 0.9616 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.8133, allocations: 3.75 kB / 0.9616 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004528/0.8138, allocations: 186.7 kB / 0.9618 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001254/0.815, allocations: 0.9174 MB / 0.9627 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00051/0.8156, allocations: 186.5 kB / 0.9629 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002039/0.8158, allocations: 88.44 kB / 0.963 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005343/0.8163, allocations: 0.5164 MB / 0.9635 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.8163, allocations: 36.97 kB / 0.9635 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.8164, allocations: 0 / 0.9635 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0007319/0.8171, allocations: 254.1 kB / 0.9637 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.727e-05/0.8171, allocations: 53.94 kB / 0.9638 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.8173, allocations: 163 kB / 0.9639 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.8173, allocations: 26.73 kB / 0.964 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.601e-05/0.8174, allocations: 118.1 kB / 0.9641 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.8174, allocations: 52.53 kB / 0.9641 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.8174, allocations: 18.94 kB / 0.9642 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.051e-05/0.8175, allocations: 321.8 kB / 0.9645 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.8177, allocations: 79.83 kB / 0.9645 GB, free: 468 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.8179, allocations: 103.9 kB / 0.9646 GB, free: 404 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003861/0.8183, allocations: 159.9 kB / 0.9648 GB, free: 316 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.8183, allocations: 3.938 kB / 0.9648 GB, free: 312 kB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004926/0.8188, allocations: 220.6 kB / 0.965 GB, free: 192 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.8189, allocations: 5.875 kB / 0.965 GB, free: 192 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.8189, allocations: 7.969 kB / 0.965 GB, free: 184 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.8189, allocations: 2 kB / 0.965 GB, free: 184 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.8192, allocations: 41.78 kB / 0.9651 GB, free: 172 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.8192, allocations: 0.9688 kB / 0.9651 GB, free: 172 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.8194, allocations: 26.7 kB / 0.9651 GB, free: 156 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.8194, allocations: 8.016 kB / 0.9651 GB, free: 152 kB / 0.7169 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.0001/0.8195, allocations: 136.4 kB / 0.9652 GB, free: 12 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.22e-05/0.8196, allocations: 12.91 kB / 0.9652 GB, free: 8 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005572/0.8201, allocations: 206.4 kB / 0.9654 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.8201, allocations: 5.344 kB / 0.9654 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.8201, allocations: 0 / 0.9654 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.8202, allocations: 1.031 kB / 0.9654 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/0.8216, allocations: 0.9806 MB / 0.9664 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.8216, allocations: 1.406 kB / 0.9664 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002065/0.8218, allocations: 43.47 kB / 0.9664 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.8219, allocations: 1.094 kB / 0.9664 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.8219, allocations: 6.375 kB / 0.9664 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.8219, allocations: 1.281 kB / 0.9664 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.8219, allocations: 1.156 kB / 0.9664 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005278/0.8224, allocations: 305.8 kB / 0.9667 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.192e-05/0.8225, allocations: 92.56 kB / 0.9668 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.8225, allocations: 2.25 kB / 0.9668 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.8228, allocations: 21.69 kB / 0.9668 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.95e-05/0.8228, allocations: 13.23 kB / 0.9669 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.8228, allocations: 4.125 kB / 0.9669 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.344e-05/0.8229, allocations: 127.3 kB / 0.967 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8229, allocations: 0 / 0.967 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005229/0.8235, allocations: 134.9 kB / 0.9671 GB, free: 14.37 MB / 0.7325 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.0004657/0.8239, allocations: 224.4 kB / 0.9673 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005226/0.8245, allocations: 182.1 kB / 0.9675 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.8245, allocations: 0 / 0.9675 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.8247, allocations: 91.95 kB / 0.9676 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.8252, allocations: 42.56 kB / 0.9676 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007599/0.826, allocations: 412 kB / 0.968 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.8263, allocations: 0.7137 MB / 0.9687 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.441e-05/0.8264, allocations: 23.78 kB / 0.9687 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.8264, allocations: 3.938 kB / 0.9687 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of Templates: time 0.006901/0.8333, allocations: 3.829 MB / 0.9725 GB, free: 11.08 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Compressors_Validation_ReciprocatingCompressor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Compressors.Validation.ReciprocatingCompressor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches