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.001517/0.001517, allocations: 103.1 kB / 16.27 MB, free: 6.414 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.001509/0.001509, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.423/1.423, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.54/2.54, allocations: 437.1 MB / 0.7111 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 68.58 kB / 0.8699 GB, free: 2.191 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.292, allocations: 151.6 MB / 1.018 GB, free: 10.63 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.0033/0.2953, allocations: 1.766 MB / 1.02 GB, free: 8.855 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001506/0.2969, allocations: 0.9239 MB / 1.021 GB, free: 7.926 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.765e-05/0.2969, allocations: 11.88 kB / 1.021 GB, free: 7.914 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0005118/0.2975, allocations: 181.7 kB / 1.021 GB, free: 7.742 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.000393/0.2979, allocations: 165.5 kB / 1.021 GB, free: 7.582 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004485/0.2983, allocations: 209 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.2986, allocations: 243.5 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.2988, allocations: 53.64 kB / 1.021 GB, free: 7.09 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.2989, allocations: 99.61 kB / 1.022 GB, free: 6.992 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.2991, allocations: 159.5 kB / 1.022 GB, free: 6.836 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.365e-05/0.2992, allocations: 24 kB / 1.022 GB, free: 6.812 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.901e-05/0.2993, allocations: 48 kB / 1.022 GB, free: 6.766 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.2994, allocations: 91.73 kB / 1.022 GB, free: 6.676 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.2995, allocations: 115.2 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003819/0.2999, allocations: 343.1 kB / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2999, allocations: 0 / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2999, allocations: 0 / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.2999, allocations: 4 kB / 1.022 GB, free: 6.223 MB / 0.795 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.0008099/0.3008, allocations: 0.603 MB / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.3008, allocations: 16.03 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.135e-05/0.3009, allocations: 28.56 kB / 1.023 GB, free: 5.527 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005419/0.3014, allocations: 410.3 kB / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.3014, allocations: 8.375 kB / 1.023 GB, free: 5.078 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/0.3015, allocations: 8.125 kB / 1.023 GB, free: 5.07 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.3016, allocations: 77.66 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.3017, allocations: 3.938 kB / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.3017, allocations: 0 / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.3017, allocations: 0 / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.3018, allocations: 47.97 kB / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006018/0.3024, allocations: 484.5 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/0.3026, allocations: 42.56 kB / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.557e-05/0.3026, allocations: 20.92 kB / 1.024 GB, free: 4.34 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.3027, allocations: 7.984 kB / 1.024 GB, free: 4.332 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.3027, allocations: 30.67 kB / 1.024 GB, free: 4.293 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3027, allocations: 3.938 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0002899/0.303, allocations: 105.2 kB / 1.024 GB, free: 4.18 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.3031, allocations: 55.41 kB / 1.024 GB, free: 4.113 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006497/0.3037, allocations: 0.5523 MB / 1.025 GB, free: 3.555 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.3037, allocations: 29.7 kB / 1.025 GB, free: 3.52 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.3039, allocations: 176 kB / 1.025 GB, free: 3.344 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.3039, allocations: 11.75 kB / 1.025 GB, free: 3.332 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/0.304, allocations: 17.72 kB / 1.025 GB, free: 3.309 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3041, allocations: 346.7 kB / 1.025 GB, free: 2.961 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.072e-05/0.3042, allocations: 12 kB / 1.025 GB, free: 2.949 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.159e-05/0.3042, allocations: 11.98 kB / 1.025 GB, free: 2.938 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.833e-05/0.3043, allocations: 41.11 kB / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.3043, allocations: 0 / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001749/0.3045, allocations: 93.23 kB / 1.025 GB, free: 2.797 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.3045, allocations: 6.656 kB / 1.025 GB, free: 2.793 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.3046, allocations: 0 / 1.025 GB, free: 2.793 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.3046, allocations: 7.938 kB / 1.025 GB, free: 2.785 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.335e-05/0.3047, allocations: 7.984 kB / 1.025 GB, free: 2.777 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.3047, allocations: 0 / 1.025 GB, free: 2.777 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.469e-05/0.3047, allocations: 4 kB / 1.025 GB, free: 2.773 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.3047, allocations: 0 / 1.025 GB, free: 2.773 MB / 0.795 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.0001708/0.3049, allocations: 186.9 kB / 1.026 GB, free: 2.582 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.672e-05/0.305, allocations: 27.62 kB / 1.026 GB, free: 2.555 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002202/0.3052, allocations: 104.1 kB / 1.026 GB, free: 2.441 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.3052, allocations: 3.938 kB / 1.026 GB, free: 2.438 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3052, allocations: 0 / 1.026 GB, free: 2.438 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.3052, allocations: 0 / 1.026 GB, free: 2.438 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000305/0.3055, allocations: 285.5 kB / 1.026 GB, free: 2.109 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3056, allocations: 4 kB / 1.026 GB, free: 2.105 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.911e-05/0.3056, allocations: 8 kB / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3056, allocations: 0 / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.3057, allocations: 4 kB / 1.026 GB, free: 2.094 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.3057, allocations: 11.92 kB / 1.026 GB, free: 2.082 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3057, allocations: 4 kB / 1.026 GB, free: 2.078 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002227/0.3059, allocations: 179.2 kB / 1.026 GB, free: 1.887 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.9e-05/0.306, allocations: 112.8 kB / 1.026 GB, free: 1.758 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.248e-05/0.306, allocations: 11.94 kB / 1.026 GB, free: 1.746 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.515e-05/0.3061, allocations: 7.938 kB / 1.026 GB, free: 1.738 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.3062, allocations: 3.984 kB / 1.026 GB, free: 1.734 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.3062, allocations: 4 kB / 1.026 GB, free: 1.73 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004727/0.3067, allocations: 415.1 kB / 1.027 GB, free: 1.328 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3067, allocations: 0 / 1.027 GB, free: 1.328 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002574/0.3069, allocations: 23.91 kB / 1.027 GB, free: 1.305 MB / 0.795 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.001245/0.3082, allocations: 355.8 kB / 1.027 GB, free: 1.082 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001582/0.3084, allocations: 35.97 kB / 1.027 GB, free: 1.047 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3084, allocations: 0 / 1.027 GB, free: 1.047 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.09e-05/0.3084, allocations: 23.86 kB / 1.027 GB, free: 1.023 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.3089, allocations: 52 kB / 1.027 GB, free: 0.9766 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000843/0.3097, allocations: 0.5468 MB / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.3102, allocations: 0.7831 MB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.197e-05/0.3102, allocations: 19.44 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.3102, allocations: 0 / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of Templates: time 0.005901/0.3161, allocations: 3.538 MB / 1.032 GB, free: 12.04 MB / 0.8106 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/jenkins1/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