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: 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_9_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_9_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.001287/0.001287, allocations: 104.2 kB / 16.4 MB, free: 6.465 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.00149/0.00149, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.15 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.247/2.247, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 63.89 kB / 0.9515 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9703/0.9718, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003619/0.9755, allocations: 1.777 MB / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001561/0.9771, allocations: 0.9166 MB / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.9772, allocations: 1.094 kB / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006189/0.9778, allocations: 185.3 kB / 1.091 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004638/0.9783, allocations: 169 kB / 1.092 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000497/0.9788, allocations: 211.6 kB / 1.092 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000356/0.9792, allocations: 241.7 kB / 1.092 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.9794, allocations: 60.62 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/0.9796, allocations: 102 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002622/0.9798, allocations: 147.2 kB / 1.092 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.305e-05/0.9799, allocations: 18.81 kB / 1.092 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.98, allocations: 54.12 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.9802, allocations: 93.55 kB / 1.092 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.9803, allocations: 112.4 kB / 1.093 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004902/0.9808, allocations: 359.1 kB / 1.093 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.9808, allocations: 0.75 kB / 1.093 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.302e-06/0.9808, allocations: 0 / 1.093 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.9808, allocations: 0 / 1.093 GB, free: 2.895 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.0008119/0.9816, allocations: 0.6007 MB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.9817, allocations: 10.3 kB / 1.094 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.29e-05/0.9818, allocations: 34.47 kB / 1.094 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005667/0.9823, allocations: 415.2 kB / 1.094 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.9823, allocations: 6.75 kB / 1.094 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.9824, allocations: 11.91 kB / 1.094 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.9826, allocations: 78.61 kB / 1.094 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.9826, allocations: 0.7812 kB / 1.094 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.9826, allocations: 3.938 kB / 1.094 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.9826, allocations: 2.156 kB / 1.094 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000138/0.9827, allocations: 44.17 kB / 1.094 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006575/0.9834, allocations: 485.2 kB / 1.095 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.9836, allocations: 44.95 kB / 1.095 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.077e-05/0.9836, allocations: 20.64 kB / 1.095 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.9837, allocations: 0.625 kB / 1.095 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.9837, allocations: 35.89 kB / 1.095 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.332e-06/0.9837, allocations: 0 / 1.095 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003105/0.984, allocations: 109.1 kB / 1.095 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.984, allocations: 52.75 kB / 1.095 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007269/0.9848, allocations: 0.5482 MB / 1.095 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.799e-06/0.9848, allocations: 26.58 kB / 1.095 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.9849, allocations: 177 kB / 1.096 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.985, allocations: 10.33 kB / 1.096 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.42e-05/0.985, allocations: 22.73 kB / 1.096 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.336e-05/0.9851, allocations: 343.2 kB / 1.096 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.107e-05/0.9851, allocations: 13.05 kB / 1.096 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.542e-05/0.9852, allocations: 18.16 kB / 1.096 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.9853, allocations: 37.67 kB / 1.096 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.9853, allocations: 0.75 kB / 1.096 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001797/0.9855, allocations: 96.91 kB / 1.096 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.9855, allocations: 4.656 kB / 1.096 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.9855, allocations: 1.094 kB / 1.096 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.9855, allocations: 4.734 kB / 1.096 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.283e-05/0.9856, allocations: 7.109 kB / 1.096 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.9857, allocations: 1.094 kB / 1.096 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.626e-05/0.9857, allocations: 3.312 kB / 1.096 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-06/0.9857, allocations: 5 kB / 1.096 GB, free: 0.5156 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.0001481/0.9859, allocations: 181.4 kB / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.859e-05/0.986, allocations: 32.91 kB / 1.096 GB, free: 364 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002375/0.9862, allocations: 102.3 kB / 1.096 GB, free: 296 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-06/0.9862, allocations: 5.125 kB / 1.096 GB, free: 292 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.9862, allocations: 0 / 1.096 GB, free: 292 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.9862, allocations: 0.7031 kB / 1.096 GB, free: 292 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.9865, allocations: 280.2 kB / 1.097 GB, free: 60 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.9865, allocations: 1.766 kB / 1.097 GB, free: 60 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.305e-05/0.9866, allocations: 7.031 kB / 1.097 GB, free: 60 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.9866, allocations: 0 / 1.097 GB, free: 60 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.9866, allocations: 10.52 kB / 1.097 GB, free: 52 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.9866, allocations: 3.938 kB / 1.097 GB, free: 48 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.9866, allocations: 0.7969 kB / 1.097 GB, free: 48 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00024/0.9869, allocations: 180 kB / 1.097 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.987, allocations: 118.1 kB / 1.097 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.987, allocations: 9.062 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.5e-05/0.9871, allocations: 6.75 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.561e-05/0.9872, allocations: 6.656 kB / 1.097 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.9872, allocations: 1.125 kB / 1.097 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005361/0.9877, allocations: 419.1 kB / 1.097 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.31e-07/0.9877, allocations: 0 / 1.097 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002855/0.988, allocations: 21.58 kB / 1.097 GB, free: 15.58 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.0008727/0.9889, allocations: 355.8 kB / 1.098 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001755/0.9891, allocations: 33.28 kB / 1.098 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.9891, allocations: 1.25 kB / 1.098 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.96e-05/0.9892, allocations: 19.78 kB / 1.098 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004717/0.9897, allocations: 39.73 kB / 1.098 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009689/0.9906, allocations: 0.5468 MB / 1.098 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.9911, allocations: 0.785 MB / 1.099 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.988e-05/0.9911, allocations: 23.16 kB / 1.099 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.9911, allocations: 0 / 1.099 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of Templates: time 0.008514/0.9997, allocations: 3.571 MB / 1.103 GB, free: 13.87 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (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 & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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