Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 214.8 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.484/1.484, allocations: 230.6 MB / 256.8 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.26/3.26, allocations: 0.4892 GB / 0.7951 GB, free: 35.59 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002089/0.002089, allocations: 73.08 kB / 1.154 GB, free: 25.56 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.3747, allocations: 176.1 MB / 1.326 GB, free: 1.891 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003771/0.3784, allocations: 1.783 MB / 1.328 GB, free: 104 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002093/0.3805, allocations: 1.091 MB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.3806, allocations: 7.938 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0006055/0.3812, allocations: 202.9 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005437/0.3818, allocations: 209.5 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005102/0.3823, allocations: 223.4 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003592/0.3827, allocations: 271.3 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.3828, allocations: 48.44 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.3831, allocations: 111.5 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.3833, allocations: 167.5 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.199e-05/0.3833, allocations: 20 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.3835, allocations: 59.92 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.3836, allocations: 95.61 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.643e-05/0.3837, allocations: 83.39 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000489/0.3842, allocations: 382.4 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3842, allocations: 0 / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3842, allocations: 0 / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.179e-05/0.3842, allocations: 4 kB / 1.331 GB, free: 13.16 MB / 1.029 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.0009243/0.3851, allocations: 0.5586 MB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.3852, allocations: 12.03 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.3854, allocations: 44.69 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000676/0.386, allocations: 368.7 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.3861, allocations: 4.312 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.435e-05/0.3861, allocations: 12.12 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.3863, allocations: 77.66 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3863, allocations: 0 / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.3863, allocations: 8 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.3863, allocations: 0 / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.3864, allocations: 47.91 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006255/0.3871, allocations: 396.2 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.3872, allocations: 46.62 kB / 1.332 GB, free: 11.51 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.557e-05/0.3873, allocations: 20.84 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.3873, allocations: 0 / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.3873, allocations: 38.5 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 8.02e-07/0.3873, allocations: 0 / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003125/0.3876, allocations: 105.6 kB / 1.333 GB, free: 11.33 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.901e-05/0.3877, allocations: 59.33 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007399/0.3884, allocations: 0.5719 MB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.3885, allocations: 25.7 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.3886, allocations: 180 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.3886, allocations: 15.91 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.3887, allocations: 13.72 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000194/0.3889, allocations: 342.8 kB / 1.334 GB, free: 10.08 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.271e-05/0.3889, allocations: 15.98 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.137e-05/0.389, allocations: 19.98 kB / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.523e-05/0.3891, allocations: 40.77 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3891, allocations: 0 / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001763/0.3892, allocations: 85.5 kB / 1.334 GB, free: 9.914 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.3893, allocations: 10.17 kB / 1.334 GB, free: 9.906 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3893, allocations: 4 kB / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3893, allocations: 0 / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.403e-05/0.3894, allocations: 4 kB / 1.334 GB, free: 9.898 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.3894, allocations: 3.938 kB / 1.334 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.3e-05/0.3894, allocations: 8 kB / 1.334 GB, free: 9.887 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.3894, allocations: 7.922 kB / 1.334 GB, free: 9.879 MB / 1.029 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.0001803/0.3896, allocations: 185.8 kB / 1.334 GB, free: 9.688 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.875e-05/0.3897, allocations: 31.77 kB / 1.334 GB, free: 9.656 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002355/0.3899, allocations: 108.5 kB / 1.334 GB, free: 9.543 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3899, allocations: 3.938 kB / 1.334 GB, free: 9.539 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3899, allocations: 3.938 kB / 1.334 GB, free: 9.535 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.3899, allocations: 0 / 1.334 GB, free: 9.535 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.3902, allocations: 205.2 kB / 1.334 GB, free: 9.305 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3902, allocations: 8 kB / 1.334 GB, free: 9.297 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.019e-05/0.3902, allocations: 11.98 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3902, allocations: 0 / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.3902, allocations: 0 / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3902, allocations: 0 / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3902, allocations: 4 kB / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002308/0.3905, allocations: 191.2 kB / 1.335 GB, free: 9.078 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.759e-05/0.3906, allocations: 43.8 kB / 1.335 GB, free: 9.035 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/0.3906, allocations: 0 / 1.335 GB, free: 9.035 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.263e-05/0.3907, allocations: 8 kB / 1.335 GB, free: 9.027 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.841e-05/0.3907, allocations: 7.938 kB / 1.335 GB, free: 9.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.3907, allocations: 0 / 1.335 GB, free: 9.02 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004947/0.3912, allocations: 439.1 kB / 1.335 GB, free: 8.594 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3912, allocations: 0 / 1.335 GB, free: 8.594 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002685/0.3915, allocations: 20 kB / 1.335 GB, free: 8.574 MB / 1.029 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.001427/0.3929, allocations: 376 kB / 1.335 GB, free: 8.352 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001683/0.3931, allocations: 39.91 kB / 1.336 GB, free: 8.312 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3931, allocations: 3.938 kB / 1.336 GB, free: 8.309 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.465e-05/0.3931, allocations: 15.98 kB / 1.336 GB, free: 8.293 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.3935, allocations: 46.42 kB / 1.336 GB, free: 8.25 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009227/0.3945, allocations: 0.5744 MB / 1.336 GB, free: 7.633 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/0.3947, allocations: 194.1 kB / 1.336 GB, free: 7.426 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.754e-05/0.3947, allocations: 19.44 kB / 1.336 GB, free: 7.406 MB / 1.029 GB Notification: Performance of SimCode: time 4.21e-07/0.3947, allocations: 0 / 1.336 GB, free: 7.406 MB / 1.029 GB Notification: Performance of Templates: time 0.006641/0.4014, allocations: 3.844 MB / 1.34 GB, free: 3.562 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.006802988238633]