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.007368/0.007368, allocations: 105.3 kB / 15.74 MB, free: 6.441 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.001703/0.001703, allocations: 192.6 kB / 16.67 MB, free: 6.355 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.515/2.515, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 66.94 kB / 0.9508 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3913/0.3926, allocations: 140.4 MB / 1.088 GB, free: 1.488 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00343/0.3961, allocations: 1.765 MB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.3976, allocations: 0.92 MB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.006e-05/0.3977, allocations: 4 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005647/0.3982, allocations: 180.4 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000401/0.3986, allocations: 172.5 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004425/0.3991, allocations: 210.5 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.3994, allocations: 239.5 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.3996, allocations: 61.58 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.3997, allocations: 103.6 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.3999, allocations: 155.5 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.666e-05/0.4, allocations: 20 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.4001, allocations: 43.98 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.4002, allocations: 87.73 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.4003, allocations: 119.2 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003769/0.4007, allocations: 346.9 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.4007, allocations: 4 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.052e-06/0.4007, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.4007, allocations: 0 / 1.092 GB, free: 13.08 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.0008632/0.4016, allocations: 0.5991 MB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.4017, allocations: 12.03 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.517e-05/0.4018, allocations: 36.55 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005719/0.4024, allocations: 414.3 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.4024, allocations: 384 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.4024, allocations: 8.125 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.4026, allocations: 73.67 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.4026, allocations: 3.938 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.4026, allocations: 0 / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.4027, allocations: 0 / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.4028, allocations: 55.91 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006687/0.4035, allocations: 484.5 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.4036, allocations: 46.5 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.362e-05/0.4037, allocations: 20.91 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.248e-05/0.4037, allocations: 4 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.4038, allocations: 38.56 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.4038, allocations: 0 / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003319/0.4041, allocations: 105.2 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.4042, allocations: 59.34 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006276/0.4048, allocations: 0.5524 MB / 1.095 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.4049, allocations: 25.7 kB / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.405, allocations: 168 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.405, allocations: 23.73 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.759e-05/0.4051, allocations: 13.72 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.4052, allocations: 338.8 kB / 1.095 GB, free: 9.82 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.07e-05/0.4053, allocations: 15.98 kB / 1.095 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.678e-05/0.4053, allocations: 15.98 kB / 1.095 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.234e-05/0.4054, allocations: 36.84 kB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4054, allocations: 0 / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001677/0.4056, allocations: 93.23 kB / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.4056, allocations: 4 kB / 1.095 GB, free: 9.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.4057, allocations: 0 / 1.095 GB, free: 9.648 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.4057, allocations: 8.266 kB / 1.095 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.458e-05/0.4058, allocations: 4 kB / 1.095 GB, free: 9.637 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.4058, allocations: 0 / 1.095 GB, free: 9.637 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.07e-05/0.4059, allocations: 12.09 kB / 1.095 GB, free: 9.625 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.4059, allocations: 3.938 kB / 1.095 GB, free: 9.621 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.000166/0.4061, allocations: 177.8 kB / 1.096 GB, free: 9.438 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.517e-05/0.4061, allocations: 31.62 kB / 1.096 GB, free: 9.406 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00024/0.4064, allocations: 108.1 kB / 1.096 GB, free: 9.289 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.4064, allocations: 3.938 kB / 1.096 GB, free: 9.285 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4064, allocations: 4 kB / 1.096 GB, free: 9.281 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.4064, allocations: 0 / 1.096 GB, free: 9.281 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002939/0.4067, allocations: 281.5 kB / 1.096 GB, free: 8.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4067, allocations: 4 kB / 1.096 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.895e-05/0.4068, allocations: 7.984 kB / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4068, allocations: 0 / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.4068, allocations: 4 kB / 1.096 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4068, allocations: 3.938 kB / 1.096 GB, free: 8.938 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4068, allocations: 4 kB / 1.096 GB, free: 8.934 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002303/0.407, allocations: 179.2 kB / 1.096 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.4072, allocations: 116.7 kB / 1.096 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.4072, allocations: 0 / 1.096 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.366e-05/0.4073, allocations: 7.938 kB / 1.096 GB, free: 8.602 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.4074, allocations: 7.984 kB / 1.096 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.4074, allocations: 4 kB / 1.096 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004518/0.4078, allocations: 419 kB / 1.097 GB, free: 8.18 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.4078, allocations: 0 / 1.097 GB, free: 8.18 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002678/0.4081, allocations: 24 kB / 1.097 GB, free: 8.156 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.0009177/0.409, allocations: 363.8 kB / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001704/0.4092, allocations: 31.97 kB / 1.097 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4092, allocations: 0 / 1.097 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.076e-05/0.4093, allocations: 12 kB / 1.097 GB, free: 7.879 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004829/0.4098, allocations: 50.23 kB / 1.097 GB, free: 7.836 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008279/0.4106, allocations: 0.5138 MB / 1.098 GB, free: 7.297 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.411, allocations: 0.787 MB / 1.098 GB, free: 6.484 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001066/0.4111, allocations: 50.92 kB / 1.098 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.389e-05/0.4111, allocations: 23.42 kB / 1.098 GB, free: 6.414 MB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.4111, allocations: 0 / 1.098 GB, free: 6.414 MB / 0.8575 GB Notification: Performance of Templates: time 0.006099/0.4173, allocations: 2.482 MB / 1.101 GB, free: 3.949 MB / 0.8575 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/jenkins/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