Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_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.00772/0.00772, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.002112/0.002112, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.775/2.775, allocations: 482.4 MB / 0.7548 GB, free: 6.891 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 64.5 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2769, allocations: 162.2 MB / 1.241 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003084/0.28, allocations: 1.774 MB / 1.243 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001422/0.2814, allocations: 0.92 MB / 1.244 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.728e-05/0.2815, allocations: 4 kB / 1.244 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0004759/0.282, allocations: 179.6 kB / 1.244 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003727/0.2824, allocations: 163.5 kB / 1.244 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004428/0.2828, allocations: 209.9 kB / 1.245 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003116/0.2831, allocations: 247.4 kB / 1.245 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.2833, allocations: 57.91 kB / 1.245 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.2834, allocations: 103.6 kB / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002143/0.2837, allocations: 155.5 kB / 1.245 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.09e-05/0.2837, allocations: 20 kB / 1.245 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.549e-05/0.2838, allocations: 40 kB / 1.245 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.2839, allocations: 87.73 kB / 1.245 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.2841, allocations: 111.3 kB / 1.245 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004191/0.2845, allocations: 366.4 kB / 1.246 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.2845, allocations: 4 kB / 1.246 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.223e-06/0.2845, allocations: 0 / 1.246 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.2845, allocations: 0 / 1.246 GB, free: 4.875 MB / 0.9669 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.0008586/0.2854, allocations: 0.6145 MB / 1.246 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2854, allocations: 8.031 kB / 1.246 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.39e-05/0.2855, allocations: 38.69 kB / 1.246 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.94e-05/0.2855, allocations: 36.7 kB / 1.246 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005673/0.2861, allocations: 410.6 kB / 1.247 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.2861, allocations: 8.375 kB / 1.247 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.2861, allocations: 7.938 kB / 1.247 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001784/0.2863, allocations: 77.59 kB / 1.247 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.2864, allocations: 0 / 1.247 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.2864, allocations: 4 kB / 1.247 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.2864, allocations: 4 kB / 1.247 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001401/0.2865, allocations: 51.91 kB / 1.247 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006193/0.2871, allocations: 476.5 kB / 1.247 GB, free: 3.012 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.2873, allocations: 54.48 kB / 1.247 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.426e-05/0.2874, allocations: 24.91 kB / 1.247 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.2874, allocations: 112 / 1.247 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.2874, allocations: 34.5 kB / 1.248 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.2874, allocations: 0 / 1.248 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0002956/0.2877, allocations: 113.3 kB / 1.248 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.2878, allocations: 55.39 kB / 1.248 GB, free: 2.695 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006759/0.2885, allocations: 0.5446 MB / 1.248 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.2885, allocations: 33.7 kB / 1.248 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.2886, allocations: 176 kB / 1.248 GB, free: 1.922 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.2887, allocations: 7.938 kB / 1.248 GB, free: 1.914 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.023e-05/0.2887, allocations: 21.7 kB / 1.248 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2889, allocations: 346.8 kB / 1.249 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.797e-05/0.2889, allocations: 15.98 kB / 1.249 GB, free: 1.523 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.868e-05/0.289, allocations: 4 kB / 1.249 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001018/0.2891, allocations: 40.83 kB / 1.249 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2891, allocations: 4 kB / 1.249 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001735/0.2893, allocations: 89.39 kB / 1.249 GB, free: 1.379 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.2893, allocations: 8 kB / 1.249 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.2893, allocations: 0 / 1.249 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2893, allocations: 7.922 kB / 1.249 GB, free: 1.363 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.022e-05/0.2894, allocations: 4 kB / 1.249 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.2894, allocations: 8 kB / 1.249 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.172e-05/0.2895, allocations: 0 / 1.249 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.2895, allocations: 4 kB / 1.249 GB, free: 1.348 MB / 0.9669 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.0001725/0.2897, allocations: 187.3 kB / 1.249 GB, free: 1.156 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.69e-05/0.2897, allocations: 27.81 kB / 1.249 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002245/0.29, allocations: 104.1 kB / 1.249 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.29, allocations: 0 / 1.249 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.29, allocations: 0 / 1.249 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.29, allocations: 7.984 kB / 1.249 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000298/0.2903, allocations: 281.5 kB / 1.25 GB, free: 0.6836 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.2903, allocations: 0 / 1.25 GB, free: 0.6836 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.777e-05/0.2904, allocations: 8 kB / 1.25 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.2904, allocations: 4 kB / 1.25 GB, free: 0.6719 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.2904, allocations: 7.922 kB / 1.25 GB, free: 0.6641 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2904, allocations: 3.938 kB / 1.25 GB, free: 0.6602 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2904, allocations: 0 / 1.25 GB, free: 0.6602 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.2906, allocations: 183.7 kB / 1.25 GB, free: 476 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.2908, allocations: 128.9 kB / 1.25 GB, free: 328 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.035e-05/0.2908, allocations: 7.938 kB / 1.25 GB, free: 320 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.036e-05/0.2909, allocations: 0 / 1.25 GB, free: 320 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.11e-05/0.2909, allocations: 4 kB / 1.25 GB, free: 316 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.76e-06/0.2909, allocations: 0 / 1.25 GB, free: 316 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0004908/0.2914, allocations: 423 kB / 1.25 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2914, allocations: 4 kB / 1.25 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002639/0.2917, allocations: 23.94 kB / 1.25 GB, free: 15.87 MB / 0.9825 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.001694/0.2934, allocations: 0.9564 MB / 1.251 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001544/0.2936, allocations: 39.92 kB / 1.251 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2936, allocations: 3.938 kB / 1.251 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.858e-05/0.2937, allocations: 19.98 kB / 1.251 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.2941, allocations: 42.48 kB / 1.251 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003561/0.2976, allocations: 2.88 MB / 1.254 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.2981, allocations: 0.7947 MB / 1.255 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001054/0.2982, allocations: 46.92 kB / 1.255 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.2984, allocations: 91.39 kB / 1.255 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of SimCode: time 2.004e-06/0.2984, allocations: 0 / 1.255 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.3246, allocations: 5.461 MB / 1.26 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.922/8.246, allocations: 19.69 kB / 1.26 GB, free: 5.73 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_latest_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