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.001759/0.00176, allocations: 101.4 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.002035/0.002035, 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.487/1.487, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.231/2.231, allocations: 390.3 MB / 0.6653 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002593/0.002593, allocations: 65.66 kB / 0.8132 GB, free: 33.05 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3641, allocations: 140.4 MB / 0.9503 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.005308/0.3694, allocations: 1.77 MB / 0.952 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002352/0.3718, allocations: 0.9123 MB / 0.9529 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001961/0.3721, allocations: 4 kB / 0.9529 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0007998/0.3729, allocations: 185.5 kB / 0.9531 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0006606/0.3736, allocations: 153 kB / 0.9532 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007134/0.3743, allocations: 218.9 kB / 0.9534 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004853/0.3748, allocations: 235.5 kB / 0.9537 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.3751, allocations: 65.53 kB / 0.9537 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002805/0.3754, allocations: 107.5 kB / 0.9538 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.3757, allocations: 147.5 kB / 0.954 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.848e-05/0.3758, allocations: 20 kB / 0.954 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.376, allocations: 47.98 kB / 0.954 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.3761, allocations: 91.69 kB / 0.9541 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001699/0.3763, allocations: 111.3 kB / 0.9542 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000566/0.3769, allocations: 359 kB / 0.9546 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3769, allocations: 0 / 0.9546 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.545e-06/0.3769, allocations: 0 / 0.9546 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.407e-05/0.3769, allocations: 0 / 0.9546 GB, free: 4.457 MB / 0.7325 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.00127/0.3782, allocations: 0.5992 MB / 0.9551 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.3783, allocations: 8.031 kB / 0.9552 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.3784, allocations: 32.56 kB / 0.9552 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008236/0.3792, allocations: 418.2 kB / 0.9556 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.3793, allocations: 8.312 kB / 0.9556 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.139e-05/0.3793, allocations: 8.125 kB / 0.9556 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.3796, allocations: 77.61 kB / 0.9557 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.3796, allocations: 0 / 0.9557 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.3796, allocations: 4 kB / 0.9557 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.3796, allocations: 0 / 0.9557 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001977/0.3798, allocations: 55.91 kB / 0.9557 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008779/0.3807, allocations: 476.5 kB / 0.9562 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001889/0.3809, allocations: 54.5 kB / 0.9562 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.012e-05/0.381, allocations: 20.91 kB / 0.9563 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.3811, allocations: 0 / 0.9563 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.3811, allocations: 30.56 kB / 0.9563 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.583e-06/0.3811, allocations: 0 / 0.9563 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0004434/0.3816, allocations: 109.2 kB / 0.9564 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.3816, allocations: 55.34 kB / 0.9564 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009653/0.3826, allocations: 0.5562 MB / 0.957 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.3827, allocations: 29.7 kB / 0.957 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.3828, allocations: 172 kB / 0.9572 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.987e-05/0.3829, allocations: 11.75 kB / 0.9572 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.234e-05/0.383, allocations: 21.7 kB / 0.9572 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001792/0.3831, allocations: 342.9 kB / 0.9575 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.223e-05/0.3832, allocations: 15.92 kB / 0.9576 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-05/0.3833, allocations: 15.98 kB / 0.9576 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.3834, allocations: 32.84 kB / 0.9576 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3834, allocations: 0 / 0.9576 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000226/0.3837, allocations: 89.33 kB / 0.9577 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.3837, allocations: 8 kB / 0.9577 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3837, allocations: 0 / 0.9577 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.3837, allocations: 7.875 kB / 0.9577 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.498e-05/0.3839, allocations: 4 kB / 0.9577 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.3839, allocations: 0 / 0.9577 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.384, allocations: 15.89 kB / 0.9577 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.384, allocations: 0 / 0.9577 GB, free: 0.9961 MB / 0.7325 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.0002034/0.3842, allocations: 183.8 kB / 0.9579 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.724e-05/0.3843, allocations: 27.62 kB / 0.9579 GB, free: 0.7812 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000285/0.3846, allocations: 104.2 kB / 0.958 GB, free: 0.668 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.3846, allocations: 3.938 kB / 0.958 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.3846, allocations: 0 / 0.958 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.3846, allocations: 4 kB / 0.958 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003862/0.385, allocations: 289.5 kB / 0.9583 GB, free: 336 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.385, allocations: 0 / 0.9583 GB, free: 336 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.627e-05/0.3851, allocations: 7.984 kB / 0.9583 GB, free: 328 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3851, allocations: 0 / 0.9583 GB, free: 328 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.3852, allocations: 4 kB / 0.9583 GB, free: 324 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.995e-06/0.3852, allocations: 7.938 kB / 0.9583 GB, free: 316 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3852, allocations: 0 / 0.9583 GB, free: 316 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002953/0.3855, allocations: 187.5 kB / 0.9585 GB, free: 112 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.3857, allocations: 117 kB / 0.9586 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.305e-05/0.3857, allocations: 0 / 0.9586 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.3859, allocations: 3.938 kB / 0.9586 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.01e-05/0.3859, allocations: 4 kB / 0.9586 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-06/0.3859, allocations: 3.984 kB / 0.9586 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0006636/0.3866, allocations: 415.1 kB / 0.959 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3866, allocations: 0 / 0.959 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004386/0.3871, allocations: 27.91 kB / 0.959 GB, free: 15.53 MB / 0.7481 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.001202/0.3883, allocations: 364.5 kB / 0.9594 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002112/0.3885, allocations: 31.98 kB / 0.9594 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3885, allocations: 4 kB / 0.9594 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 7.803e-05/0.3886, allocations: 19.98 kB / 0.9595 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006283/0.3893, allocations: 43.56 kB / 0.9595 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.3905, allocations: 0.5428 MB / 0.96 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.391, allocations: 0.7907 MB / 0.9608 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.426e-05/0.3911, allocations: 19.44 kB / 0.9608 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of SimCode: time 6.92e-07/0.3911, allocations: 0 / 0.9608 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of Templates: time 0.009039/0.4001, allocations: 3.537 MB / 0.9643 GB, free: 10.25 MB / 0.7481 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