Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",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.00129/0.00129, 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.001291/0.001291, allocations: 195.5 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.254/1.254, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.204/2.204, allocations: 390.2 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 59.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5357/0.537, allocations: 140.4 MB / 0.9497 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002663/0.5397, allocations: 1.763 MB / 0.9515 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001151/0.5409, allocations: 0.9203 MB / 0.9524 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.66e-05/0.541, allocations: 2.625 kB / 0.9524 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004395/0.5414, allocations: 176.6 kB / 0.9525 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003445/0.5418, allocations: 168.1 kB / 0.9527 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000381/0.5422, allocations: 203.5 kB / 0.9529 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.5424, allocations: 241.8 kB / 0.9531 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.5426, allocations: 61.34 kB / 0.9532 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.5427, allocations: 99.58 kB / 0.9533 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.5429, allocations: 159.1 kB / 0.9534 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.321e-05/0.5429, allocations: 19.09 kB / 0.9534 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.349e-05/0.543, allocations: 43.47 kB / 0.9535 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.687e-05/0.5431, allocations: 91.73 kB / 0.9536 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.106e-05/0.5432, allocations: 116.1 kB / 0.9537 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002909/0.5435, allocations: 347.8 kB / 0.954 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.5435, allocations: 5.469 kB / 0.954 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/0.5435, allocations: 0 / 0.954 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.5436, allocations: 4 kB / 0.954 GB, free: 5.883 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006273/0.5442, allocations: 0.5951 MB / 0.9546 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.5442, allocations: 9.438 kB / 0.9546 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.995e-05/0.5443, allocations: 36.66 kB / 0.9546 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.479e-05/0.5443, allocations: 30.22 kB / 0.9547 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004098/0.5447, allocations: 418.9 kB / 0.9551 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.5448, allocations: 7.219 kB / 0.9551 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.5448, allocations: 11.69 kB / 0.9551 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.5449, allocations: 78.59 kB / 0.9552 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.5449, allocations: 1.062 kB / 0.9552 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.5449, allocations: 0 / 0.9552 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.545, allocations: 1.875 kB / 0.9552 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001363/0.5451, allocations: 52.02 kB / 0.9552 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004617/0.5456, allocations: 483.8 kB / 0.9557 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00012/0.5457, allocations: 47.62 kB / 0.9557 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.927e-05/0.5458, allocations: 21.09 kB / 0.9557 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.5458, allocations: 1 kB / 0.9557 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.43e-05/0.5458, allocations: 31.56 kB / 0.9558 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.5458, allocations: 0 / 0.9558 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000258/0.5461, allocations: 111.9 kB / 0.9559 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.229e-05/0.5461, allocations: 51.41 kB / 0.9559 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005226/0.5466, allocations: 0.5503 MB / 0.9565 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.878e-06/0.5467, allocations: 25.7 kB / 0.9565 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.686e-05/0.5468, allocations: 179.8 kB / 0.9567 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.5468, allocations: 3.906 kB / 0.9567 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/0.5468, allocations: 24.73 kB / 0.9567 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.971e-05/0.5469, allocations: 345.2 kB / 0.957 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.962e-05/0.5469, allocations: 15.44 kB / 0.957 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.721e-05/0.547, allocations: 12.72 kB / 0.957 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.507e-05/0.5471, allocations: 35.36 kB / 0.9571 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.5471, allocations: 1.844 kB / 0.9571 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001465/0.5472, allocations: 87.78 kB / 0.9572 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.5473, allocations: 5.875 kB / 0.9572 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.5473, allocations: 3.984 kB / 0.9572 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.5473, allocations: 7.938 kB / 0.9572 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.248e-05/0.5474, allocations: 9.656 kB / 0.9572 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.5474, allocations: 1.406 kB / 0.9572 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.802e-05/0.5474, allocations: 1.312 kB / 0.9572 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.5475, allocations: 1.344 kB / 0.9572 GB, free: 3.188 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001111/0.5476, allocations: 183.5 kB / 0.9574 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.301e-05/0.5476, allocations: 29.38 kB / 0.9574 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001949/0.5478, allocations: 112.1 kB / 0.9575 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.5478, allocations: 0 / 0.9575 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.5479, allocations: 1.375 kB / 0.9575 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.5479, allocations: 8.016 kB / 0.9575 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002251/0.5481, allocations: 287.1 kB / 0.9578 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5481, allocations: 0 / 0.9578 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.314e-05/0.5482, allocations: 9.438 kB / 0.9578 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.5482, allocations: 5.359 kB / 0.9578 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.5482, allocations: 3.938 kB / 0.9578 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.5482, allocations: 1.375 kB / 0.9578 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.5482, allocations: 0 / 0.9578 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.5484, allocations: 184.2 kB / 0.958 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.91e-05/0.5484, allocations: 118.5 kB / 0.9581 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.5485, allocations: 3.938 kB / 0.9581 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.92e-05/0.5486, allocations: 2.75 kB / 0.9581 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.288e-05/0.5486, allocations: 1.375 kB / 0.9581 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.5486, allocations: 1.375 kB / 0.9581 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004121/0.5491, allocations: 425 kB / 0.9585 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5491, allocations: 0 / 0.9585 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002715/0.5493, allocations: 24.97 kB / 0.9585 GB, free: 2.109 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.001008/0.5503, allocations: 0.9809 MB / 0.9595 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000153/0.5505, allocations: 35.33 kB / 0.9595 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.5505, allocations: 0 / 0.9595 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.35e-05/0.5506, allocations: 22.33 kB / 0.9595 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004273/0.551, allocations: 43.69 kB / 0.9596 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.554, allocations: 2.888 MB / 0.9624 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.5543, allocations: 0.7792 MB / 0.9632 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001369/0.5545, allocations: 51.98 kB / 0.9632 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.5546, allocations: 92.61 kB / 0.9633 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of SimCode: time 1.533e-06/0.5546, allocations: 4 kB / 0.9633 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/0.5773, allocations: 5.362 MB / 0.9685 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.873/7.45, allocations: 5.688 kB / 0.9685 GB, free: 11.83 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=86400.000000 File[27]=1002.240000 Error: Could not read variable linPieTwo.u in file Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv failed! " Variables in the reference:time,linPieTwo.u,linPieTwo.y[1],linPieTwo.y[2] Variables in the result:time,linPieTwo.y[1],linPieTwo.y[2],pulse.y,linPieTwo.x0,linPieTwo.x1