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.007383/0.007383, allocations: 100.5 kB / 15.73 MB, free: 5.98 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.001714/0.001714, allocations: 200.3 kB / 16.68 MB, free: 5.906 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.71/2.71, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 67.89 kB / 1.054 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7604/0.762, allocations: 157.4 MB / 1.207 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003292/0.7654, allocations: 1.771 MB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001627/0.767, allocations: 0.9162 MB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.7672, allocations: 3.938 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0006524/0.7679, allocations: 182.9 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0004838/0.7684, allocations: 171.5 kB / 1.21 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005097/0.7689, allocations: 202.7 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.7692, allocations: 235.5 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.7694, allocations: 63.89 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.7696, allocations: 99.59 kB / 1.211 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000224/0.7698, allocations: 147.6 kB / 1.211 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.496e-05/0.7699, allocations: 20 kB / 1.211 GB, free: 9.746 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.77, allocations: 51.91 kB / 1.211 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.7701, allocations: 83.75 kB / 1.211 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.7702, allocations: 115.2 kB / 1.211 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.7706, allocations: 354.8 kB / 1.212 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.7706, allocations: 8 kB / 1.212 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.283e-06/0.7706, allocations: 0 / 1.212 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.7706, allocations: 0 / 1.212 GB, free: 9.145 MB / 0.9356 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.0008655/0.7715, allocations: 0.6069 MB / 1.212 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.7716, allocations: 8.031 kB / 1.212 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.519e-05/0.7716, allocations: 34.75 kB / 1.212 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.454e-05/0.7717, allocations: 36.47 kB / 1.212 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005587/0.7723, allocations: 414.3 kB / 1.213 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.737e-06/0.7723, allocations: 4.375 kB / 1.213 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.7723, allocations: 11.94 kB / 1.213 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.7725, allocations: 81.53 kB / 1.213 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.7725, allocations: 0 / 1.213 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.7725, allocations: 4 kB / 1.213 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.7725, allocations: 4 kB / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.7726, allocations: 47.91 kB / 1.213 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005793/0.7732, allocations: 480.4 kB / 1.213 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.7733, allocations: 50.56 kB / 1.213 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.452e-05/0.7734, allocations: 20.91 kB / 1.213 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.7734, allocations: 0 / 1.213 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.7735, allocations: 38.5 kB / 1.213 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.352e-06/0.7735, allocations: 3.938 kB / 1.213 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0002835/0.7738, allocations: 97.52 kB / 1.213 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.7738, allocations: 55.41 kB / 1.213 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005983/0.7744, allocations: 0.5562 MB / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.7744, allocations: 25.7 kB / 1.214 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.7746, allocations: 175.9 kB / 1.214 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.7746, allocations: 7.906 kB / 1.214 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.511e-05/0.7746, allocations: 13.72 kB / 1.214 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.7748, allocations: 346.8 kB / 1.215 GB, free: 5.836 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.479e-05/0.7748, allocations: 16 kB / 1.215 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.269e-05/0.7749, allocations: 15.97 kB / 1.215 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.64e-05/0.775, allocations: 36.78 kB / 1.215 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.775, allocations: 4 kB / 1.215 GB, free: 5.762 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001653/0.7752, allocations: 81.3 kB / 1.215 GB, free: 5.676 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.7752, allocations: 8 kB / 1.215 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.7752, allocations: 0 / 1.215 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.7752, allocations: 3.938 kB / 1.215 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.867e-05/0.7753, allocations: 15.98 kB / 1.215 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.7753, allocations: 4 kB / 1.215 GB, free: 5.645 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.143e-05/0.7754, allocations: 0 / 1.215 GB, free: 5.645 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-06/0.7754, allocations: 0 / 1.215 GB, free: 5.645 MB / 0.9356 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.0001477/0.7756, allocations: 181.8 kB / 1.215 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.408e-05/0.7756, allocations: 27.73 kB / 1.215 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/0.7759, allocations: 108 kB / 1.215 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.7759, allocations: 0 / 1.215 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.7759, allocations: 4 kB / 1.215 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.7759, allocations: 0 / 1.215 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000271/0.7762, allocations: 289.5 kB / 1.215 GB, free: 4.977 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.7762, allocations: 0 / 1.215 GB, free: 4.977 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.888e-05/0.7762, allocations: 4 kB / 1.215 GB, free: 4.973 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.7763, allocations: 4 kB / 1.215 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.7763, allocations: 3.938 kB / 1.215 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.7763, allocations: 4 kB / 1.215 GB, free: 4.961 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.7763, allocations: 0 / 1.215 GB, free: 4.961 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001997/0.7765, allocations: 191.1 kB / 1.216 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.7766, allocations: 120.7 kB / 1.216 GB, free: 4.621 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.884e-05/0.7766, allocations: 3.938 kB / 1.216 GB, free: 4.617 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.381e-05/0.7767, allocations: 3.984 kB / 1.216 GB, free: 4.613 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.955e-05/0.7768, allocations: 4 kB / 1.216 GB, free: 4.609 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-06/0.7768, allocations: 0 / 1.216 GB, free: 4.609 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000431/0.7772, allocations: 415.1 kB / 1.216 GB, free: 4.207 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7772, allocations: 7.938 kB / 1.216 GB, free: 4.199 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002668/0.7775, allocations: 31.98 kB / 1.216 GB, free: 4.168 MB / 0.9356 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.001146/0.7787, allocations: 0.9642 MB / 1.217 GB, free: 3.309 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001462/0.7788, allocations: 39.86 kB / 1.217 GB, free: 3.27 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.7788, allocations: 0 / 1.217 GB, free: 3.27 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.739e-05/0.7789, allocations: 19.98 kB / 1.217 GB, free: 3.25 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004145/0.7793, allocations: 37.7 kB / 1.217 GB, free: 3.219 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003194/0.7825, allocations: 2.904 MB / 1.22 GB, free: 248 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.7829, allocations: 0.7831 MB / 1.221 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001093/0.783, allocations: 50.91 kB / 1.221 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.7831, allocations: 87.39 kB / 1.221 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of SimCode: time 4.81e-07/0.7832, allocations: 0 / 1.221 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.8055, allocations: 5.56 MB / 1.226 GB, free: 9.93 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.854/8.659, allocations: 9.312 kB / 1.226 GB, free: 9.922 MB / 0.9512 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 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.mat","/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) Reference file matches