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.007538/0.007538, allocations: 108.6 kB / 15.74 MB, free: 6.051 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.001862/0.001861, allocations: 194.4 kB / 16.68 MB, free: 5.98 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.282/1.282, allocations: 222.9 MB / 240.4 MB, free: 4.176 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.213/2.213, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 62.81 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2155, allocations: 140.4 MB / 1.087 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002749/0.2182, allocations: 1.779 MB / 1.089 GB, free: 192 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001312/0.2196, allocations: 0.9122 MB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.22e-05/0.2197, allocations: 0 / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004762/0.2202, allocations: 191.1 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003507/0.2205, allocations: 160.8 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004275/0.221, allocations: 206.4 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.2212, allocations: 235.5 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.2214, allocations: 56.45 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.2215, allocations: 103.6 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.2217, allocations: 159.5 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.999e-05/0.2218, allocations: 20 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.927e-05/0.2219, allocations: 47.92 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.59e-05/0.222, allocations: 87.73 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.315e-05/0.2221, allocations: 111.2 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.2224, allocations: 347.7 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2224, allocations: 0 / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.354e-06/0.2224, allocations: 0 / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.978e-06/0.2224, allocations: 3.938 kB / 1.092 GB, free: 13.58 MB / 0.8575 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.0007464/0.2232, allocations: 0.6069 MB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.2232, allocations: 16.02 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.209e-05/0.2233, allocations: 34.75 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.937e-05/0.2233, allocations: 32.56 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004799/0.2238, allocations: 410.2 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.2238, allocations: 12.31 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.2239, allocations: 3.938 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.224, allocations: 89.52 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.224, allocations: 0 / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.2241, allocations: 4 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.2241, allocations: 8 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.2242, allocations: 43.97 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005356/0.2247, allocations: 488.4 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.2249, allocations: 46.62 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.152e-05/0.2249, allocations: 20.84 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.225, allocations: 4 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.225, allocations: 34.5 kB / 1.094 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.225, allocations: 0 / 1.094 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002701/0.2253, allocations: 105.2 kB / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.576e-05/0.2253, allocations: 51.41 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005629/0.2259, allocations: 0.5484 MB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.2259, allocations: 25.7 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.226, allocations: 183.9 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/0.226, allocations: 7.844 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/0.2261, allocations: 17.72 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.2262, allocations: 350.8 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.977e-05/0.2262, allocations: 8 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.136e-05/0.2263, allocations: 11.98 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.125e-05/0.2264, allocations: 40.78 kB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2264, allocations: 0 / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001618/0.2266, allocations: 89.3 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2266, allocations: 8 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.2266, allocations: 0 / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.2266, allocations: 3.938 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.074e-05/0.2267, allocations: 8.094 kB / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.257e-06/0.2267, allocations: 3.938 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.481e-05/0.2268, allocations: 4 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.481e-06/0.2268, allocations: 0 / 1.095 GB, free: 10.07 MB / 0.8575 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.0001335/0.2269, allocations: 189.8 kB / 1.095 GB, free: 9.875 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.421e-05/0.227, allocations: 31.61 kB / 1.095 GB, free: 9.844 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001991/0.2272, allocations: 104.5 kB / 1.095 GB, free: 9.73 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2272, allocations: 48 / 1.095 GB, free: 9.73 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.2272, allocations: 3.984 kB / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.2272, allocations: 0 / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000248/0.2275, allocations: 285.5 kB / 1.096 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2275, allocations: 0 / 1.096 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.705e-05/0.2275, allocations: 11.94 kB / 1.096 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2275, allocations: 0 / 1.096 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.2275, allocations: 11.94 kB / 1.096 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2275, allocations: 0 / 1.096 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2276, allocations: 0 / 1.096 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001908/0.2277, allocations: 183.1 kB / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.391e-05/0.2278, allocations: 112.7 kB / 1.096 GB, free: 9.051 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.039e-05/0.2279, allocations: 11.94 kB / 1.096 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.328e-05/0.228, allocations: 11.98 kB / 1.096 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.621e-05/0.228, allocations: 0 / 1.096 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-06/0.228, allocations: 4 kB / 1.096 GB, free: 9.023 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004011/0.2284, allocations: 415.1 kB / 1.096 GB, free: 8.617 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2284, allocations: 0 / 1.096 GB, free: 8.617 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002598/0.2287, allocations: 35.92 kB / 1.096 GB, free: 8.582 MB / 0.8575 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.001041/0.2297, allocations: 0.9564 MB / 1.097 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001437/0.2299, allocations: 43.91 kB / 1.097 GB, free: 7.688 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2299, allocations: 0 / 1.097 GB, free: 7.688 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.048e-05/0.23, allocations: 11.98 kB / 1.097 GB, free: 7.676 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003823/0.2304, allocations: 49.56 kB / 1.097 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.2332, allocations: 2.89 MB / 1.1 GB, free: 4.668 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.2336, allocations: 0.7831 MB / 1.101 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.565e-05/0.2337, allocations: 42.92 kB / 1.101 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.2338, allocations: 91.39 kB / 1.101 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of SimCode: time 3.41e-07/0.2338, allocations: 0 / 1.101 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0204/0.2542, allocations: 5.463 MB / 1.106 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.45/7.704, allocations: 13.56 kB / 1.106 GB, free: 14.39 MB / 0.8731 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