Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 108 kB / 15.61 MB, free: 152 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.001967/0.001967, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.466/1.466, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.782/2.782, allocations: 437 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 63.89 kB / 0.8692 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6939/0.6958, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003884/0.6998, allocations: 1.771 MB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001756/0.7016, allocations: 0.92 MB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.545e-05/0.7017, allocations: 4 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000613/0.7023, allocations: 180.4 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004391/0.7028, allocations: 177.8 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005027/0.7033, allocations: 203.4 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003285/0.7036, allocations: 243.5 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.7038, allocations: 45.66 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.704, allocations: 107.6 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.7042, allocations: 151.6 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.862e-05/0.7043, allocations: 24 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.7044, allocations: 47.98 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.7045, allocations: 95.67 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.7047, allocations: 111.2 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004213/0.7051, allocations: 344.8 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.7051, allocations: 4 kB / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.526e-06/0.7051, allocations: 4 kB / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.824e-06/0.7051, allocations: 0 / 1.022 GB, free: 14.1 MB / 0.7794 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.0009332/0.7061, allocations: 0.5991 MB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.7061, allocations: 12.03 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.7062, allocations: 32.5 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006238/0.7068, allocations: 422.2 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.7068, allocations: 384 / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.028e-05/0.7069, allocations: 8.125 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.7071, allocations: 77.66 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.7071, allocations: 0 / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.7071, allocations: 0 / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.7071, allocations: 0 / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001445/0.7073, allocations: 55.91 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007067/0.708, allocations: 480.5 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.7081, allocations: 46.5 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.54e-05/0.7082, allocations: 20.91 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.7083, allocations: 8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.7083, allocations: 34.56 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.7083, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003152/0.7086, allocations: 97.34 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.7087, allocations: 63.28 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.7094, allocations: 0.5524 MB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.7094, allocations: 25.7 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.7095, allocations: 179.9 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.7096, allocations: 7.906 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-05/0.7096, allocations: 13.72 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001663/0.7098, allocations: 342.8 kB / 1.025 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.041e-05/0.7098, allocations: 15.94 kB / 1.025 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.937e-05/0.7099, allocations: 15.98 kB / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.941e-05/0.71, allocations: 41.11 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.71, allocations: 0 / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001765/0.7102, allocations: 89.23 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.7102, allocations: 4 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.7102, allocations: 0 / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.7103, allocations: 7.938 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.873e-05/0.7104, allocations: 7.984 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.7104, allocations: 0 / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.068e-05/0.7104, allocations: 11.91 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.7105, allocations: 0 / 1.025 GB, free: 10.64 MB / 0.7794 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.0001778/0.7106, allocations: 181.8 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.075e-05/0.7107, allocations: 31.61 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002336/0.7109, allocations: 96.2 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.711, allocations: 3.938 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.711, allocations: 0 / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.711, allocations: 0 / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003155/0.7113, allocations: 297.4 kB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.7113, allocations: 0 / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.722e-05/0.7114, allocations: 8 kB / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.7114, allocations: 0 / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.994e-06/0.7114, allocations: 0 / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.7114, allocations: 3.938 kB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.7114, allocations: 4 kB / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002268/0.7116, allocations: 179.2 kB / 1.026 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.7117, allocations: 116.8 kB / 1.026 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.7118, allocations: 4 kB / 1.026 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.525e-05/0.7119, allocations: 11.92 kB / 1.026 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.373e-05/0.7119, allocations: 3.938 kB / 1.026 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.712, allocations: 4 kB / 1.026 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004904/0.7124, allocations: 415.1 kB / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7125, allocations: 0 / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002741/0.7127, allocations: 27.89 kB / 1.026 GB, free: 9.184 MB / 0.7794 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.001295/0.714, allocations: 365.2 kB / 1.026 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000189/0.7142, allocations: 31.97 kB / 1.026 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.7142, allocations: 0 / 1.026 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.751e-05/0.7143, allocations: 15.98 kB / 1.026 GB, free: 8.906 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004953/0.7148, allocations: 51.45 kB / 1.027 GB, free: 8.859 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008879/0.7157, allocations: 0.5099 MB / 1.027 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.7162, allocations: 0.7831 MB / 1.028 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001116/0.7163, allocations: 46.91 kB / 1.028 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.622e-05/0.7164, allocations: 19.44 kB / 1.028 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of SimCode: time 3.61e-07/0.7164, allocations: 4 kB / 1.028 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of Templates: time 0.006867/0.7232, allocations: 2.46 MB / 1.03 GB, free: 5.008 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches