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.006769/0.006769, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001233/0.001234, allocations: 194.1 kB / 16.67 MB, free: 5.977 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.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.349/2.349, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 62.88 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2736, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003209/0.2768, allocations: 1.766 MB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001575/0.2784, allocations: 0.9162 MB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.2786, allocations: 7.938 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005643/0.2791, allocations: 184 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004088/0.2796, allocations: 161.6 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004685/0.28, allocations: 212.6 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003205/0.2804, allocations: 243.4 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.2805, allocations: 64.44 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.2807, allocations: 95.73 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000214/0.2809, allocations: 155.5 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.635e-05/0.281, allocations: 20 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.2811, allocations: 44 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.408e-05/0.2812, allocations: 87.75 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.2813, allocations: 127.1 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004191/0.2817, allocations: 351.6 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2818, allocations: 0 / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.873e-06/0.2818, allocations: 0 / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.09e-05/0.2818, allocations: 0 / 1.092 GB, free: 13.59 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.0008835/0.2827, allocations: 0.5992 MB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.2827, allocations: 8.031 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.145e-05/0.2828, allocations: 38.75 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.801e-05/0.2828, allocations: 28.56 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005501/0.2834, allocations: 422.2 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/0.2834, allocations: 4.375 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.761e-05/0.2834, allocations: 11.94 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/0.2836, allocations: 77.59 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.2836, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.2836, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.2836, allocations: 7.984 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.2838, allocations: 43.97 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006034/0.2844, allocations: 488.4 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.2845, allocations: 50.5 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.447e-05/0.2846, allocations: 20.91 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.2846, allocations: 0 / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.2846, allocations: 30.56 kB / 1.094 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.2846, allocations: 4 kB / 1.094 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002843/0.2849, allocations: 105.2 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.285, allocations: 51.41 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005829/0.2856, allocations: 0.5523 MB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.2856, allocations: 25.7 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.2857, allocations: 183.9 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.2857, allocations: 7.844 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.652e-05/0.2858, allocations: 17.72 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.2859, allocations: 354.8 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.981e-05/0.286, allocations: 8 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.019e-05/0.286, allocations: 11.98 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.958e-05/0.2861, allocations: 36.95 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2861, allocations: 3.938 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001667/0.2863, allocations: 85.3 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.2863, allocations: 12 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2863, allocations: 0 / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.2864, allocations: 3.938 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.514e-05/0.2864, allocations: 11.92 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.2865, allocations: 4 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.281e-05/0.2865, allocations: 0 / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-06/0.2865, allocations: 3.938 kB / 1.095 GB, free: 10.09 MB / 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.0001351/0.2867, allocations: 181.8 kB / 1.095 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.41e-05/0.2867, allocations: 31.62 kB / 1.095 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002103/0.287, allocations: 100.1 kB / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.287, allocations: 384 / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.287, allocations: 0 / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.287, allocations: 4 kB / 1.095 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002582/0.2873, allocations: 285.5 kB / 1.096 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2873, allocations: 0 / 1.096 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.925e-05/0.2873, allocations: 7.938 kB / 1.096 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2873, allocations: 7.984 kB / 1.096 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.2873, allocations: 3.938 kB / 1.096 GB, free: 9.406 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.2874, allocations: 3.984 kB / 1.096 GB, free: 9.402 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2874, allocations: 4 kB / 1.096 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.2876, allocations: 183.2 kB / 1.096 GB, free: 9.203 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.2877, allocations: 116.7 kB / 1.096 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.2877, allocations: 7.922 kB / 1.096 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.714e-05/0.2878, allocations: 0 / 1.096 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.2879, allocations: 8 kB / 1.096 GB, free: 9.055 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-06/0.2879, allocations: 4 kB / 1.096 GB, free: 9.051 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004273/0.2883, allocations: 423.1 kB / 1.096 GB, free: 8.637 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2883, allocations: 0 / 1.096 GB, free: 8.637 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000269/0.2886, allocations: 27.94 kB / 1.096 GB, free: 8.609 MB / 0.8575 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.001161/0.2898, allocations: 0.9607 MB / 1.097 GB, free: 7.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001527/0.2899, allocations: 31.92 kB / 1.097 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2899, allocations: 0 / 1.097 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.661e-05/0.29, allocations: 23.92 kB / 1.097 GB, free: 7.695 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.2904, allocations: 50.89 kB / 1.097 GB, free: 7.652 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/0.2938, allocations: 2.882 MB / 1.1 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.2942, allocations: 0.7869 MB / 1.101 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001151/0.2943, allocations: 51.09 kB / 1.101 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.2944, allocations: 95.39 kB / 1.101 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.2944, allocations: 0 / 1.101 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.3173, allocations: 5.54 MB / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.425/7.742, allocations: 15.69 kB / 1.106 GB, free: 14.31 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 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.mat","/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) Reference file matches