Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_10_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.00109/0.00109, allocations: 111.9 kB / 15.61 MB, free: 128 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.001092/0.001092, allocations: 196.2 kB / 16.54 MB, free: 6.668 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.274/1.274, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.426/2.426, allocations: 437 MB / 0.7104 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 63.91 kB / 0.8694 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5181/0.5195, allocations: 151.6 MB / 1.017 GB, free: 2.453 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002758/0.5222, allocations: 1.761 MB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.5235, allocations: 0.9201 MB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.109e-05/0.5236, allocations: 4 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004442/0.524, allocations: 181.2 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.5244, allocations: 165.6 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.5248, allocations: 214.9 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002473/0.525, allocations: 235.5 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.5252, allocations: 59.8 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.5253, allocations: 103.6 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.5255, allocations: 151.6 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.5255, allocations: 23.98 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.898e-05/0.5256, allocations: 51.92 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.068e-05/0.5257, allocations: 91.69 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.975e-05/0.5258, allocations: 115.2 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003021/0.5261, allocations: 346.8 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.5262, allocations: 0 / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.192e-06/0.5262, allocations: 0 / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.5262, allocations: 0 / 1.022 GB, free: 14.05 MB / 0.7794 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.0006773/0.5269, allocations: 0.5992 MB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.5269, allocations: 12.03 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.008e-05/0.5269, allocations: 30.75 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.38e-05/0.527, allocations: 44.44 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.5275, allocations: 418.2 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.5275, allocations: 4.375 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.5275, allocations: 7.938 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.5277, allocations: 69.67 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.5277, allocations: 0 / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.5277, allocations: 8 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.5277, allocations: 4 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001265/0.5278, allocations: 47.91 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004941/0.5283, allocations: 472.5 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.5285, allocations: 58.5 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.333e-05/0.5285, allocations: 16.91 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.5285, allocations: 7.984 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.5286, allocations: 30.56 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.5286, allocations: 0 / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002763/0.5289, allocations: 105.3 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/0.5289, allocations: 63.28 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005428/0.5294, allocations: 0.5524 MB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.5295, allocations: 29.7 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.5296, allocations: 168 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.5296, allocations: 15.81 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.105e-05/0.5296, allocations: 13.7 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.5297, allocations: 342.8 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.244e-05/0.5298, allocations: 15.98 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.057e-05/0.5299, allocations: 15.98 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.268e-05/0.53, allocations: 36.84 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.53, allocations: 0 / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001588/0.5301, allocations: 85.33 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.5301, allocations: 8 kB / 1.025 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-06/0.5302, allocations: 0 / 1.025 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.5302, allocations: 3.938 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.799e-05/0.5302, allocations: 4 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.5303, allocations: 11.94 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.805e-05/0.5303, allocations: 7.891 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-06/0.5303, allocations: 0 / 1.025 GB, free: 10.55 MB / 0.7794 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.0001274/0.5305, allocations: 177.8 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.245e-05/0.5305, allocations: 27.62 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.5307, allocations: 108.1 kB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.5307, allocations: 0 / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.5308, allocations: 0 / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.5308, allocations: 11.94 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.531, allocations: 285.5 kB / 1.025 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.531, allocations: 0 / 1.025 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.047e-05/0.5311, allocations: 7.984 kB / 1.025 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.5311, allocations: 4 kB / 1.025 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.5311, allocations: 3.938 kB / 1.025 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.5311, allocations: 0 / 1.025 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.5311, allocations: 0 / 1.025 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001859/0.5313, allocations: 183.2 kB / 1.026 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.255e-05/0.5314, allocations: 120.8 kB / 1.026 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.124e-05/0.5314, allocations: 4.359 kB / 1.026 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.524e-05/0.5315, allocations: 0 / 1.026 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.868e-05/0.5316, allocations: 7.938 kB / 1.026 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.5316, allocations: 3.984 kB / 1.026 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003958/0.532, allocations: 419.1 kB / 1.026 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.373e-06/0.532, allocations: 0 / 1.026 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002595/0.5323, allocations: 31.84 kB / 1.026 GB, free: 9.082 MB / 0.7794 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.001089/0.5333, allocations: 0.9664 MB / 1.027 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001467/0.5335, allocations: 39.91 kB / 1.027 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5335, allocations: 0 / 1.027 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.32e-05/0.5336, allocations: 19.94 kB / 1.027 GB, free: 8.168 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003945/0.534, allocations: 38.8 kB / 1.027 GB, free: 8.133 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.5368, allocations: 2.89 MB / 1.03 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.5371, allocations: 0.7986 MB / 1.031 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.636e-05/0.5373, allocations: 38.94 kB / 1.031 GB, free: 4.297 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.5374, allocations: 91.39 kB / 1.031 GB, free: 4.207 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.5374, allocations: 0 / 1.031 GB, free: 4.207 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01973/0.5571, allocations: 5.374 MB / 1.036 GB, free: 14.99 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.919/7.477, allocations: 4.391 kB / 1.036 GB, free: 14.98 MB / 0.795 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_10_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