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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001257/0.001257, allocations: 108 kB / 15.6 MB, free: 132 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.00131/0.00131, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.319/1.319, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.601/2.601, allocations: 469.4 MB / 0.742 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 70.5 kB / 0.9083 GB, free: 34.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2661, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002967/0.2691, allocations: 1.78 MB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.2704, allocations: 0.9161 MB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.856e-05/0.2705, allocations: 7.938 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004556/0.271, allocations: 187.6 kB / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003368/0.2713, allocations: 152 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003981/0.2717, allocations: 219.2 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002468/0.272, allocations: 243.5 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.2721, allocations: 49.94 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.2723, allocations: 99.67 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.2724, allocations: 155.5 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.279e-05/0.2725, allocations: 20 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.649e-05/0.2726, allocations: 43.98 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.808e-05/0.2727, allocations: 87.75 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.259e-05/0.2728, allocations: 115.2 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.2731, allocations: 354.8 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2731, allocations: 4 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2731, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.142e-06/0.2731, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 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.0007144/0.2739, allocations: 0.6069 MB / 1.069 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2739, allocations: 8.031 kB / 1.069 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.2739, allocations: 42.73 kB / 1.069 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.307e-05/0.274, allocations: 32.56 kB / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005123/0.2745, allocations: 414.2 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.2745, allocations: 4.375 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.2746, allocations: 15.88 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.2747, allocations: 69.66 kB / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.2747, allocations: 4 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.2747, allocations: 4 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.2748, allocations: 4 kB / 1.069 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.2749, allocations: 43.97 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005409/0.2754, allocations: 484.4 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.2756, allocations: 50.56 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.958e-05/0.2756, allocations: 12.92 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.2756, allocations: 7.984 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.2757, allocations: 38.5 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.2757, allocations: 0 / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002643/0.2759, allocations: 97.23 kB / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.276, allocations: 55.41 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005727/0.2766, allocations: 0.5601 MB / 1.07 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.2766, allocations: 25.7 kB / 1.07 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.2767, allocations: 171.9 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.2767, allocations: 15.84 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.243e-05/0.2768, allocations: 13.72 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.2769, allocations: 342.8 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.065e-05/0.277, allocations: 16 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.18e-05/0.277, allocations: 15.98 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.164e-05/0.2771, allocations: 40.72 kB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.2771, allocations: 0 / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001652/0.2773, allocations: 89.58 kB / 1.071 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.2773, allocations: 4 kB / 1.071 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.2773, allocations: 0 / 1.071 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.2773, allocations: 3.938 kB / 1.071 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.651e-05/0.2774, allocations: 16.03 kB / 1.071 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.2774, allocations: 3.984 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.421e-05/0.2775, allocations: 3.984 kB / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-06/0.2775, allocations: 4 kB / 1.071 GB, free: 6.582 MB / 0.8262 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.0001419/0.2776, allocations: 173.8 kB / 1.071 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.275e-05/0.2777, allocations: 31.56 kB / 1.071 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002033/0.2779, allocations: 104.1 kB / 1.071 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.2779, allocations: 4 kB / 1.071 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.2779, allocations: 4 kB / 1.071 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2779, allocations: 0 / 1.071 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.2782, allocations: 289.5 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2782, allocations: 0 / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.118e-05/0.2783, allocations: 8 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2783, allocations: 0 / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.2783, allocations: 4.047 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2783, allocations: 7.938 kB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2783, allocations: 0 / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001974/0.2785, allocations: 187.1 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.871e-05/0.2786, allocations: 120.7 kB / 1.072 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.2786, allocations: 3.938 kB / 1.072 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-05/0.2787, allocations: 7.984 kB / 1.072 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.445e-05/0.2788, allocations: 0 / 1.072 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-06/0.2788, allocations: 0 / 1.072 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004124/0.2792, allocations: 419.1 kB / 1.072 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2792, allocations: 0 / 1.072 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002545/0.2795, allocations: 28 kB / 1.073 GB, free: 5.113 MB / 0.8262 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.001092/0.2806, allocations: 0.9647 MB / 1.073 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001406/0.2807, allocations: 43.89 kB / 1.073 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2807, allocations: 0 / 1.073 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.272e-05/0.2808, allocations: 19.98 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003712/0.2812, allocations: 40.12 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003074/0.2842, allocations: 2.896 MB / 1.076 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003584/0.2846, allocations: 0.787 MB / 1.077 GB, free: 380 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001024/0.2847, allocations: 46.91 kB / 1.077 GB, free: 332 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.2849, allocations: 87.41 kB / 1.077 GB, free: 244 kB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2849, allocations: 0 / 1.077 GB, free: 244 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.3053, allocations: 5.375 MB / 1.083 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.082/7.388, allocations: 5.625 kB / 1.083 GB, free: 11.04 MB / 0.8419 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 50 --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