Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.01022/0.01022, allocations: 102.9 kB / 15.78 MB, free: 5.977 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.001529/0.001529, allocations: 191.1 kB / 16.72 MB, free: 5.852 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.496/1.496, allocations: 225.6 MB / 243.1 MB, free: 3.746 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.749/2.749, allocations: 489.4 MB / 0.7669 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 60.12 kB / 1.115 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9121/0.914, allocations: 172 MB / 1.283 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003379/0.9174, allocations: 1.778 MB / 1.284 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001673/0.919, allocations: 0.9242 MB / 1.285 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.9191, allocations: 6.156 kB / 1.285 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006059/0.9197, allocations: 184.8 kB / 1.286 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004351/0.9202, allocations: 163.9 kB / 1.286 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005483/0.9207, allocations: 201.3 kB / 1.286 GB, free: 3.246 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003486/0.9211, allocations: 246.9 kB / 1.286 GB, free: 3.133 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.9212, allocations: 41.77 kB / 1.286 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.9214, allocations: 96.92 kB / 1.286 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002616/0.9217, allocations: 172.5 kB / 1.286 GB, free: 3.02 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.242e-05/0.9217, allocations: 19.97 kB / 1.286 GB, free: 3.02 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.9218, allocations: 41.17 kB / 1.286 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.922, allocations: 90.75 kB / 1.287 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.9221, allocations: 112 kB / 1.287 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005157/0.9226, allocations: 361.7 kB / 1.287 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.9226, allocations: 0 / 1.287 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.744e-06/0.9226, allocations: 0 / 1.287 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.221e-05/0.9226, allocations: 1.219 kB / 1.287 GB, free: 2.75 MB / 0.9981 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.001131/0.9237, allocations: 0.6125 MB / 1.288 GB, free: 2.211 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.9238, allocations: 9.25 kB / 1.288 GB, free: 2.211 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.353e-05/0.9239, allocations: 33.73 kB / 1.288 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006021/0.9245, allocations: 425 kB / 1.288 GB, free: 1.879 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.9245, allocations: 1.844 kB / 1.288 GB, free: 1.879 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.9245, allocations: 11.84 kB / 1.288 GB, free: 1.871 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001909/0.9247, allocations: 75.11 kB / 1.288 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.9247, allocations: 0 / 1.288 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.9247, allocations: 1.531 kB / 1.288 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.9247, allocations: 1.312 kB / 1.288 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.9249, allocations: 48.14 kB / 1.288 GB, free: 1.809 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007316/0.9256, allocations: 476.6 kB / 1.289 GB, free: 1.457 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001518/0.9257, allocations: 56.84 kB / 1.289 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.402e-05/0.9258, allocations: 19.45 kB / 1.289 GB, free: 1.402 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.9258, allocations: 0.7969 kB / 1.289 GB, free: 1.402 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.9259, allocations: 36.58 kB / 1.289 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.9259, allocations: 0 / 1.289 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0003186/0.9262, allocations: 112.3 kB / 1.289 GB, free: 1.289 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.9262, allocations: 52.64 kB / 1.289 GB, free: 1.227 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007272/0.927, allocations: 0.5573 MB / 1.289 GB, free: 0.9805 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.927, allocations: 29.7 kB / 1.289 GB, free: 0.9453 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.9271, allocations: 173.7 kB / 1.29 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.9272, allocations: 6.797 kB / 1.29 GB, free: 0.7969 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.125e-05/0.9272, allocations: 17.97 kB / 1.29 GB, free: 0.7773 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002408/0.9274, allocations: 343.2 kB / 1.29 GB, free: 464 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.049e-05/0.9275, allocations: 17 kB / 1.29 GB, free: 456 kB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.284e-05/0.9275, allocations: 18.39 kB / 1.29 GB, free: 448 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.563e-05/0.9276, allocations: 30.33 kB / 1.29 GB, free: 436 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.9276, allocations: 0 / 1.29 GB, free: 436 kB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001802/0.9278, allocations: 91.03 kB / 1.29 GB, free: 376 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.9278, allocations: 5.906 kB / 1.29 GB, free: 376 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.9278, allocations: 1.5 kB / 1.29 GB, free: 376 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.9279, allocations: 3.938 kB / 1.29 GB, free: 372 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.739e-05/0.9279, allocations: 15.64 kB / 1.29 GB, free: 364 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.928, allocations: 1.25 kB / 1.29 GB, free: 364 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.029e-05/0.928, allocations: 6.219 kB / 1.29 GB, free: 360 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.014e-06/0.928, allocations: 1.953 kB / 1.29 GB, free: 360 kB / 0.9981 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.0001829/0.9282, allocations: 180.7 kB / 1.29 GB, free: 216 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.926e-05/0.9283, allocations: 29.31 kB / 1.29 GB, free: 200 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002384/0.9285, allocations: 99 kB / 1.29 GB, free: 136 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.9285, allocations: 3.938 kB / 1.29 GB, free: 132 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.778e-06/0.9285, allocations: 5.25 kB / 1.29 GB, free: 128 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.9285, allocations: 0.7031 kB / 1.29 GB, free: 128 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000394/0.9289, allocations: 288.2 kB / 1.291 GB, free: 15.89 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.9289, allocations: 1.125 kB / 1.291 GB, free: 15.89 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.53e-05/0.929, allocations: 11.56 kB / 1.291 GB, free: 15.89 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.929, allocations: 0 / 1.291 GB, free: 15.89 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.929, allocations: 1.75 kB / 1.291 GB, free: 15.89 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.929, allocations: 3.938 kB / 1.291 GB, free: 15.88 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.929, allocations: 1.531 kB / 1.291 GB, free: 15.88 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.9292, allocations: 188 kB / 1.291 GB, free: 15.72 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.9294, allocations: 118.4 kB / 1.291 GB, free: 15.61 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.141e-05/0.9294, allocations: 1.156 kB / 1.291 GB, free: 15.61 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.477e-05/0.9295, allocations: 6.562 kB / 1.291 GB, free: 15.6 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/0.9295, allocations: 6.594 kB / 1.291 GB, free: 15.6 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.9295, allocations: 5.734 kB / 1.291 GB, free: 15.59 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005179/0.9301, allocations: 418.6 kB / 1.291 GB, free: 15.41 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9301, allocations: 4 kB / 1.291 GB, free: 15.41 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002728/0.9303, allocations: 25.73 kB / 1.292 GB, free: 15.41 MB / 1.014 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.001317/0.9316, allocations: 360.8 kB / 1.292 GB, free: 15.22 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001777/0.9318, allocations: 31.75 kB / 1.292 GB, free: 15.21 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.9318, allocations: 1.344 kB / 1.292 GB, free: 15.21 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 5.8e-05/0.9319, allocations: 16.11 kB / 1.292 GB, free: 15.21 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005379/0.9324, allocations: 46.39 kB / 1.292 GB, free: 15.19 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.9334, allocations: 0.5202 MB / 1.292 GB, free: 14.89 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005202/0.934, allocations: 0.7889 MB / 1.293 GB, free: 14.17 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001289/0.9341, allocations: 45.86 kB / 1.293 GB, free: 14.16 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.593e-05/0.9341, allocations: 21.97 kB / 1.293 GB, free: 14.15 MB / 1.014 GB Notification: Performance of SimCode: time 9.11e-07/0.9341, allocations: 1.156 kB / 1.293 GB, free: 14.15 MB / 1.014 GB Notification: Performance of Templates: time 0.007098/0.9412, allocations: 2.496 MB / 1.296 GB, free: 13.92 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches