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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.688/1.688, allocations: 390.4 MB / 397.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009176/0.0009176, allocations: 175.8 kB / 490.8 MB, free: 1.996 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.052/1.052, allocations: 221.3 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008041/0.000804, allocations: 96.09 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.45e-06/5.54e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1636, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4468/0.6105, allocations: 152.8 MB / 1.361 GB, free: 17.21 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/0.6108, allocations: 95.7 kB / 1.361 GB, free: 17.21 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01138/0.6221, allocations: 5.089 MB / 1.366 GB, free: 16.89 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.224e-05/0.6222, allocations: 9.344 kB / 1.366 GB, free: 16.89 MB / 0.823 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.000367/0.6226, allocations: 0.4912 MB / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.794e-05/0.6226, allocations: 8.625 kB / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.031e-05/0.6227, allocations: 37.67 kB / 1.366 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005019/0.6232, allocations: 422.8 kB / 1.367 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.6232, allocations: 6.438 kB / 1.367 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.362e-05/0.6232, allocations: 2.969 kB / 1.367 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.873e-05/0.6233, allocations: 35.28 kB / 1.367 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.913e-05/0.6234, allocations: 63.83 kB / 1.367 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.6234, allocations: 0 / 1.367 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.6234, allocations: 0 / 1.367 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.6234, allocations: 5.844 kB / 1.367 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005107/0.6239, allocations: 475.4 kB / 1.367 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.179e-05/0.624, allocations: 41.56 kB / 1.367 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.436e-05/0.624, allocations: 16.61 kB / 1.367 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.6241, allocations: 3.75 kB / 1.367 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.235e-05/0.6241, allocations: 32 kB / 1.367 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.6241, allocations: 3.938 kB / 1.367 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001547/0.6242, allocations: 77.27 kB / 1.368 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.59e-05/0.6243, allocations: 52.88 kB / 1.368 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000497/0.6248, allocations: 496.5 kB / 1.368 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.853e-06/0.6248, allocations: 25.7 kB / 1.368 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.499e-05/0.6248, allocations: 123.7 kB / 1.368 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.395e-05/0.6249, allocations: 8.281 kB / 1.368 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.085e-06/0.6249, allocations: 0 / 1.368 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.625, allocations: 345.2 kB / 1.369 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.717e-05/0.625, allocations: 4.219 kB / 1.369 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.487e-05/0.625, allocations: 9.703 kB / 1.369 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.291e-05/0.6251, allocations: 9.953 kB / 1.369 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.6251, allocations: 7.938 kB / 1.369 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.909e-05/0.6252, allocations: 83.28 kB / 1.369 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/0.6252, allocations: 7.875 kB / 1.369 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.6252, allocations: 1.281 kB / 1.369 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.766e-06/0.6252, allocations: 0 / 1.369 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.773e-05/0.6253, allocations: 8.828 kB / 1.369 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.349e-06/0.6253, allocations: 5.406 kB / 1.369 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.682e-05/0.6254, allocations: 3.094 kB / 1.369 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.6254, allocations: 2.5 kB / 1.369 GB, free: 31.12 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.453e-05/0.6254, allocations: 106.2 kB / 1.369 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.33e-05/0.6255, allocations: 29.16 kB / 1.369 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001446/0.6256, allocations: 94.27 kB / 1.369 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.6257, allocations: 5.312 kB / 1.369 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.6257, allocations: 0 / 1.369 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.6257, allocations: 0 / 1.369 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.6259, allocations: 275.2 kB / 1.369 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.6259, allocations: 7.938 kB / 1.369 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.053e-05/0.6259, allocations: 12.72 kB / 1.369 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.6259, allocations: 0 / 1.369 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.261e-06/0.6259, allocations: 2.688 kB / 1.369 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.626, allocations: 0 / 1.369 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.626, allocations: 5.375 kB / 1.369 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001224/0.6261, allocations: 172.6 kB / 1.369 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.375e-05/0.6262, allocations: 138.2 kB / 1.369 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.6262, allocations: 1.078 kB / 1.369 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.6263, allocations: 6.875 kB / 1.369 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.23e-05/0.6264, allocations: 4.359 kB / 1.369 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-06/0.6264, allocations: 1.031 kB / 1.369 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0003472/0.6267, allocations: 383.6 kB / 1.37 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002518/0.627, allocations: 38.34 kB / 1.37 GB, free: 30.42 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004292/0.6274, allocations: 266.6 kB / 1.37 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.311e-05/0.6275, allocations: 21.78 kB / 1.37 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.6275, allocations: 0 / 1.37 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.191e-05/0.6275, allocations: 21.12 kB / 1.37 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.6278, allocations: 37.72 kB / 1.37 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006191/0.6284, allocations: 403.9 kB / 1.371 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004241/0.6288, allocations: 0.8134 MB / 1.371 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of SimCode: time 2.9e-07/0.6288, allocations: 4 kB / 1.371 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of Templates: time 0.004542/0.6334, allocations: 1.982 MB / 1.373 GB, free: 29.2 MB / 0.8386 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","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches