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.005534/0.005534, allocations: 97.16 kB / 15.73 MB, free: 6.055 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.001289/0.001289, allocations: 191.8 kB / 16.67 MB, free: 5.969 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.255/1.255, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.105/2.105, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 59.91 kB / 0.9504 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6331/0.635, allocations: 140.4 MB / 1.087 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002474/0.6375, allocations: 1.778 MB / 1.089 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001178/0.6387, allocations: 0.9173 MB / 1.09 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.665e-05/0.6388, allocations: 5 kB / 1.09 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004667/0.6392, allocations: 184.9 kB / 1.09 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003387/0.6396, allocations: 166 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003807/0.64, allocations: 212.9 kB / 1.091 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.6402, allocations: 242.1 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.6404, allocations: 64.36 kB / 1.091 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.6405, allocations: 101.6 kB / 1.091 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.6407, allocations: 148 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/0.6407, allocations: 22.48 kB / 1.091 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.85e-05/0.6408, allocations: 50.38 kB / 1.091 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.32e-05/0.6409, allocations: 85.61 kB / 1.091 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.088e-05/0.641, allocations: 112.9 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003541/0.6414, allocations: 356.3 kB / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.6414, allocations: 1.031 kB / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.853e-06/0.6414, allocations: 0 / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.6414, allocations: 3.938 kB / 1.092 GB, free: 2.633 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.0006379/0.642, allocations: 0.616 MB / 1.092 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.6421, allocations: 9.906 kB / 1.092 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.525e-05/0.6421, allocations: 38.22 kB / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.136e-05/0.6422, allocations: 34.52 kB / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004427/0.6426, allocations: 420.2 kB / 1.093 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-06/0.6426, allocations: 10.94 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.6426, allocations: 7.062 kB / 1.093 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/0.6428, allocations: 78.84 kB / 1.093 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.892e-06/0.6428, allocations: 4 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.6428, allocations: 2.172 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.6428, allocations: 0.875 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.6429, allocations: 44.41 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004798/0.6434, allocations: 484.4 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.6436, allocations: 45.86 kB / 1.093 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.819e-05/0.6436, allocations: 23.28 kB / 1.094 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.6436, allocations: 5.25 kB / 1.094 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.085e-05/0.6437, allocations: 36.72 kB / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.6437, allocations: 0 / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002521/0.6439, allocations: 104.7 kB / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.536e-05/0.6439, allocations: 52.73 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005868/0.6445, allocations: 0.5534 MB / 1.094 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.773e-06/0.6445, allocations: 25.7 kB / 1.094 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.038e-05/0.6446, allocations: 174 kB / 1.094 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.6447, allocations: 17.02 kB / 1.094 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.6447, allocations: 18.78 kB / 1.094 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.507e-05/0.6448, allocations: 342.8 kB / 1.095 GB, free: 292 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.685e-05/0.6448, allocations: 8.969 kB / 1.095 GB, free: 292 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.902e-05/0.6448, allocations: 14.78 kB / 1.095 GB, free: 288 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.358e-05/0.6449, allocations: 41.38 kB / 1.095 GB, free: 264 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.6449, allocations: 1.234 kB / 1.095 GB, free: 264 kB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001522/0.6451, allocations: 87.42 kB / 1.095 GB, free: 208 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.6451, allocations: 10.11 kB / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.6451, allocations: 0.6562 kB / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.6452, allocations: 4.656 kB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.8e-05/0.6452, allocations: 7.609 kB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.6452, allocations: 1.031 kB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.459e-05/0.6453, allocations: 6.562 kB / 1.095 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.6453, allocations: 1.281 kB / 1.095 GB, free: 196 kB / 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.0001164/0.6454, allocations: 185.6 kB / 1.095 GB, free: 48 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.224e-05/0.6455, allocations: 33.2 kB / 1.095 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002342/0.6457, allocations: 102.1 kB / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.6457, allocations: 1.859 kB / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.6458, allocations: 0 / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.6458, allocations: 0 / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.6461, allocations: 284.7 kB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.6461, allocations: 0.5156 kB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.989e-05/0.6461, allocations: 8.531 kB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.6461, allocations: 0 / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.6461, allocations: 4.812 kB / 1.096 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.6461, allocations: 1.391 kB / 1.096 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.6462, allocations: 0.6562 kB / 1.096 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001943/0.6464, allocations: 188.9 kB / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.6465, allocations: 116.9 kB / 1.096 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.6465, allocations: 5.484 kB / 1.096 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.55e-05/0.6466, allocations: 10.55 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.678e-05/0.6466, allocations: 3.266 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.459e-06/0.6466, allocations: 1.703 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000454/0.6471, allocations: 418.6 kB / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.462e-06/0.6471, allocations: 0 / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002565/0.6474, allocations: 33.48 kB / 1.096 GB, free: 15.24 MB / 0.8731 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.001064/0.6484, allocations: 0.9726 MB / 1.097 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001395/0.6486, allocations: 33.62 kB / 1.097 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.6486, allocations: 0 / 1.097 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.385e-05/0.6487, allocations: 16.55 kB / 1.097 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003939/0.6491, allocations: 49.69 kB / 1.097 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.6521, allocations: 2.887 MB / 1.1 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.6525, allocations: 0.7858 MB / 1.101 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001071/0.6526, allocations: 45.03 kB / 1.101 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.6527, allocations: 92.47 kB / 1.101 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of SimCode: time 2.6e-07/0.6527, allocations: 4 kB / 1.101 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.6723, allocations: 5.455 MB / 1.106 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.379/8.051, allocations: 7.812 kB / 1.106 GB, free: 11.11 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