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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001012/0.001012, allocations: 92.78 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 180.1 kB / 16.92 MB, free: 6.652 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.432/1.432, allocations: 223.3 MB / 241 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.684/2.684, allocations: 462.7 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 9.562 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2877, allocations: 159.6 MB / 1.059 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002202/0.2899, allocations: 1.49 MB / 1.061 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001505/0.2915, allocations: 0.885 MB / 1.062 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.2916, allocations: 11.88 kB / 1.062 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005047/0.2921, allocations: 170.9 kB / 1.062 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003633/0.2925, allocations: 144.6 kB / 1.062 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004616/0.293, allocations: 198.4 kB / 1.062 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003/0.2933, allocations: 219.5 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.2934, allocations: 53.66 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.2936, allocations: 83.61 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.2938, allocations: 135.5 kB / 1.063 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.568e-05/0.2939, allocations: 8 kB / 1.063 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.294, allocations: 24 kB / 1.063 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.798e-05/0.2941, allocations: 71.75 kB / 1.063 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.2942, allocations: 124.9 kB / 1.063 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.2945, allocations: 287.6 kB / 1.063 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2946, allocations: 4 kB / 1.063 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.124e-06/0.2946, allocations: 3.938 kB / 1.063 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.508e-06/0.2946, allocations: 4 kB / 1.063 GB, free: 1.043 MB / 0.8106 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.0007925/0.2954, allocations: 0.5526 MB / 1.064 GB, free: 452 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/0.2954, allocations: 12.03 kB / 1.064 GB, free: 440 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.657e-05/0.2955, allocations: 28.56 kB / 1.064 GB, free: 412 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005247/0.2961, allocations: 410.3 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.2961, allocations: 8.375 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.2961, allocations: 12.12 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.2963, allocations: 81.59 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.2963, allocations: 0 / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.2963, allocations: 0 / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.2963, allocations: 4 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.2964, allocations: 51.91 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005642/0.297, allocations: 492.3 kB / 1.065 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.2972, allocations: 46.56 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.676e-05/0.2972, allocations: 20.92 kB / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.2973, allocations: 7.984 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.2973, allocations: 34.5 kB / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2973, allocations: 0 / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002766/0.2976, allocations: 105.3 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.2976, allocations: 51.41 kB / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006105/0.2982, allocations: 0.5639 MB / 1.066 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.2983, allocations: 25.7 kB / 1.066 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.2984, allocations: 172 kB / 1.066 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.2984, allocations: 11.84 kB / 1.066 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.389e-05/0.2984, allocations: 9.719 kB / 1.066 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.2986, allocations: 346.8 kB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.187e-05/0.2986, allocations: 11.98 kB / 1.066 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.018e-05/0.2987, allocations: 16.17 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.602e-05/0.2988, allocations: 48.86 kB / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2988, allocations: 0 / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001608/0.299, allocations: 93.3 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.299, allocations: 4 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.299, allocations: 0 / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.299, allocations: 3.938 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.893e-05/0.2991, allocations: 12 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.2991, allocations: 3.984 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.329e-05/0.2992, allocations: 4 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.2992, allocations: 0 / 1.066 GB, free: 13.61 MB / 0.8262 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.000158/0.2993, allocations: 178.3 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.072e-05/0.2994, allocations: 31.62 kB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002493/0.2997, allocations: 112.1 kB / 1.067 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2997, allocations: 3.938 kB / 1.067 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.2997, allocations: 0 / 1.067 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2997, allocations: 0 / 1.067 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002781/0.3, allocations: 285.5 kB / 1.067 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.3, allocations: 0 / 1.067 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.076e-05/0.3, allocations: 12.09 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.3, allocations: 3.938 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.3001, allocations: 0 / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3001, allocations: 7.938 kB / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3001, allocations: 0 / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002189/0.3003, allocations: 191.1 kB / 1.067 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.3004, allocations: 120.7 kB / 1.067 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.839e-05/0.3004, allocations: 7.922 kB / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.208e-05/0.3005, allocations: 11.94 kB / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.649e-05/0.3006, allocations: 4 kB / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.3006, allocations: 4 kB / 1.067 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004221/0.301, allocations: 419.1 kB / 1.068 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.301, allocations: 0 / 1.068 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002558/0.3013, allocations: 28 kB / 1.068 GB, free: 12.12 MB / 0.8262 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.0007969/0.3021, allocations: 360.5 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001418/0.3022, allocations: 27.98 kB / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.3022, allocations: 0 / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.703e-05/0.3023, allocations: 23.92 kB / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.3027, allocations: 47.08 kB / 1.068 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008377/0.3036, allocations: 0.6286 MB / 1.069 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.3039, allocations: 0.7794 MB / 1.069 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.933e-05/0.304, allocations: 31.42 kB / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.304, allocations: 0 / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of Templates: time 0.005367/0.3094, allocations: 3.485 MB / 1.073 GB, free: 6.828 MB / 0.8262 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/jenkins1/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