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.001241/0.00124, allocations: 106.3 kB / 16.41 MB, free: 6.516 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.001187/0.001187, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.38/1.38, 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 10.1.1-maint.10.0.x/package.mo): time 2.419/2.419, allocations: 437.1 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 67.89 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8959/0.8975, allocations: 151.6 MB / 1.167 GB, free: 3.832 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003829/0.9014, allocations: 1.774 MB / 1.169 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001697/0.9031, allocations: 0.924 MB / 1.17 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.9033, allocations: 0 / 1.17 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0006586/0.904, allocations: 188.2 kB / 1.17 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0004901/0.9045, allocations: 162 kB / 1.17 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005607/0.9051, allocations: 215 kB / 1.17 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003815/0.9054, allocations: 239.5 kB / 1.171 GB, free: 348 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.9056, allocations: 53.62 kB / 1.171 GB, free: 292 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000203/0.9058, allocations: 103.6 kB / 1.171 GB, free: 188 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002474/0.9061, allocations: 159.5 kB / 1.171 GB, free: 28 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.646e-05/0.9061, allocations: 20 kB / 1.171 GB, free: 8 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.9063, allocations: 48.08 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.9064, allocations: 83.75 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.9065, allocations: 119.1 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004515/0.907, allocations: 352.5 kB / 1.172 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.907, allocations: 0 / 1.172 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.613e-06/0.907, allocations: 0 / 1.172 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.011e-05/0.907, allocations: 0 / 1.172 GB, free: 15.42 MB / 0.9044 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.001033/0.9081, allocations: 0.6031 MB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.9081, allocations: 12.92 kB / 1.172 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.837e-05/0.9082, allocations: 28.56 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006316/0.9088, allocations: 418.1 kB / 1.173 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.9089, allocations: 8.375 kB / 1.173 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.013e-05/0.9089, allocations: 8.125 kB / 1.173 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.9091, allocations: 73.66 kB / 1.173 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.9091, allocations: 0 / 1.173 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.9091, allocations: 4 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.9091, allocations: 4 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.9093, allocations: 51.91 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006798/0.91, allocations: 476.4 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.9101, allocations: 54.48 kB / 1.173 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.697e-05/0.9102, allocations: 20.92 kB / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.9102, allocations: 3.984 kB / 1.173 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.9102, allocations: 30.56 kB / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.9102, allocations: 0 / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3): time 0.000325/0.9106, allocations: 101.3 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.9106, allocations: 51.41 kB / 1.173 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006839/0.9113, allocations: 0.5561 MB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.9113, allocations: 33.7 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.9115, allocations: 175.9 kB / 1.174 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.9115, allocations: 7.906 kB / 1.174 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.36e-05/0.9116, allocations: 13.72 kB / 1.174 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.9117, allocations: 346.8 kB / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.122e-05/0.9118, allocations: 12 kB / 1.175 GB, free: 12.15 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.95e-05/0.9118, allocations: 11.98 kB / 1.175 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.387e-05/0.9119, allocations: 40.84 kB / 1.175 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.9119, allocations: 0 / 1.175 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001748/0.9121, allocations: 89.58 kB / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.9122, allocations: 4 kB / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.9122, allocations: 0 / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.05e-05/0.9122, allocations: 11.91 kB / 1.175 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.459e-05/0.9123, allocations: 15.92 kB / 1.175 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.9123, allocations: 0 / 1.175 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.655e-05/0.9124, allocations: 0 / 1.175 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.9124, allocations: 0 / 1.175 GB, free: 11.97 MB / 0.9044 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.0001598/0.9126, allocations: 185.8 kB / 1.175 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.495e-05/0.9126, allocations: 27.62 kB / 1.175 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002198/0.9129, allocations: 104.2 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.9129, allocations: 3.938 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.9129, allocations: 4.109 kB / 1.175 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.9129, allocations: 3.938 kB / 1.175 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.9132, allocations: 281.5 kB / 1.175 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.9132, allocations: 3.984 kB / 1.175 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.071e-05/0.9133, allocations: 19.94 kB / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.9133, allocations: 0 / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.9133, allocations: 0 / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.9133, allocations: 3.938 kB / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.9133, allocations: 0 / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002122/0.9135, allocations: 179.2 kB / 1.176 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.9137, allocations: 124.7 kB / 1.176 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.881e-05/0.9137, allocations: 0 / 1.176 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.767e-05/0.9138, allocations: 7.938 kB / 1.176 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.827e-05/0.9138, allocations: 7.984 kB / 1.176 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.9139, allocations: 0 / 1.176 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0004673/0.9143, allocations: 419.1 kB / 1.176 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.1e-07/0.9143, allocations: 0 / 1.176 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002659/0.9146, allocations: 20 kB / 1.176 GB, free: 10.5 MB / 0.9044 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.0008997/0.9155, allocations: 360.1 kB / 1.176 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001569/0.9157, allocations: 35.97 kB / 1.176 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.9157, allocations: 0 / 1.176 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.758e-05/0.9158, allocations: 19.98 kB / 1.176 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00044/0.9162, allocations: 49.06 kB / 1.177 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008877/0.9171, allocations: 0.5543 MB / 1.177 GB, free: 9.594 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.9175, allocations: 0.7869 MB / 1.178 GB, free: 8.781 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.442e-05/0.9176, allocations: 19.44 kB / 1.178 GB, free: 8.762 MB / 0.9044 GB Notification: Performance of SimCode: time 2.81e-07/0.9176, allocations: 4 kB / 1.178 GB, free: 8.758 MB / 0.9044 GB Notification: Performance of Templates: time 0.006196/0.9238, allocations: 3.563 MB / 1.181 GB, free: 5.207 MB / 0.9044 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=480 -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