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.001447/0.001447, allocations: 102.1 kB / 16.35 MB, free: 5.828 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.001443/0.001443, allocations: 193.2 kB / 17.29 MB, free: 5.484 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: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.485/2.485, allocations: 442.5 MB / 0.7165 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 60.52 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.2999, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003444/0.3034, allocations: 1.787 MB / 1.028 GB, free: 236 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001489/0.3049, allocations: 0.9277 MB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.632e-05/0.305, allocations: 7.938 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005924/0.3056, allocations: 178 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004408/0.3061, allocations: 175.4 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004652/0.3066, allocations: 203.3 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002921/0.3069, allocations: 235.5 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.307, allocations: 65.58 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.3072, allocations: 103.6 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.3074, allocations: 151.5 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.763e-05/0.3074, allocations: 20 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.992e-05/0.3076, allocations: 47.92 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.3077, allocations: 83.75 kB / 1.031 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.3078, allocations: 119.2 kB / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003983/0.3082, allocations: 358.8 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3082, allocations: 4 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3082, allocations: 0 / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3082, allocations: 0 / 1.031 GB, free: 13.59 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.0008447/0.3091, allocations: 0.5991 MB / 1.032 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3091, allocations: 8.75 kB / 1.032 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.393e-05/0.3092, allocations: 32.56 kB / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000572/0.3098, allocations: 418.2 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.3098, allocations: 384 / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.3098, allocations: 8.125 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.31, allocations: 85.55 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.31, allocations: 0 / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.31, allocations: 4 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3101, allocations: 0 / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001176/0.3102, allocations: 43.97 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006484/0.3108, allocations: 480.5 kB / 1.033 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.311, allocations: 46.56 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.514e-05/0.3111, allocations: 20.91 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.3111, allocations: 4 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.3112, allocations: 34.56 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 2.695e-06/0.3112, allocations: 3.984 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0002859/0.3115, allocations: 105.2 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.3115, allocations: 59.41 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005737/0.3121, allocations: 0.5562 MB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.3121, allocations: 25.7 kB / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.3122, allocations: 168 kB / 1.034 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.3123, allocations: 15.75 kB / 1.034 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.3123, allocations: 17.7 kB / 1.034 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3124, allocations: 338.8 kB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.06e-05/0.3125, allocations: 19.98 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.058e-05/0.3125, allocations: 19.98 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.506e-05/0.3126, allocations: 36.78 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3126, allocations: 0 / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001556/0.3128, allocations: 89.3 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.3128, allocations: 6.5 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3128, allocations: 3.938 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3129, allocations: 7.938 kB / 1.034 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.873e-05/0.3129, allocations: 4 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.313, allocations: 4.109 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.604e-05/0.313, allocations: 11.92 kB / 1.034 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.313, allocations: 0 / 1.034 GB, free: 10.13 MB / 0.8106 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.0001409/0.3132, allocations: 178.3 kB / 1.034 GB, free: 9.945 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.1e-05/0.3132, allocations: 27.62 kB / 1.034 GB, free: 9.918 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002137/0.3135, allocations: 104.1 kB / 1.034 GB, free: 9.805 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3135, allocations: 3.938 kB / 1.034 GB, free: 9.801 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3135, allocations: 0 / 1.034 GB, free: 9.801 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3135, allocations: 4 kB / 1.034 GB, free: 9.797 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002651/0.3138, allocations: 285.5 kB / 1.035 GB, free: 9.469 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3138, allocations: 4 kB / 1.035 GB, free: 9.465 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.881e-05/0.3138, allocations: 7.984 kB / 1.035 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3138, allocations: 0 / 1.035 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.3138, allocations: 0 / 1.035 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.3139, allocations: 3.938 kB / 1.035 GB, free: 9.453 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3139, allocations: 4 kB / 1.035 GB, free: 9.449 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001989/0.3141, allocations: 187.1 kB / 1.035 GB, free: 9.25 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.3142, allocations: 116.7 kB / 1.035 GB, free: 9.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.782e-05/0.3142, allocations: 0 / 1.035 GB, free: 9.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.195e-05/0.3143, allocations: 7.938 kB / 1.035 GB, free: 9.109 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.188e-05/0.3144, allocations: 432 / 1.035 GB, free: 9.109 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.3144, allocations: 7.984 kB / 1.035 GB, free: 9.102 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004348/0.3148, allocations: 415.1 kB / 1.035 GB, free: 8.695 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3148, allocations: 0 / 1.035 GB, free: 8.695 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002604/0.3151, allocations: 24 kB / 1.036 GB, free: 8.672 MB / 0.8106 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.0008042/0.3159, allocations: 365.4 kB / 1.036 GB, free: 8.441 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001521/0.3161, allocations: 23.98 kB / 1.036 GB, free: 8.418 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3161, allocations: 8 kB / 1.036 GB, free: 8.41 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.312e-05/0.3161, allocations: 19.92 kB / 1.036 GB, free: 8.391 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004459/0.3166, allocations: 45.47 kB / 1.036 GB, free: 8.348 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000793/0.3174, allocations: 0.4983 MB / 1.036 GB, free: 7.82 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.3178, allocations: 0.7947 MB / 1.037 GB, free: 7 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.983e-05/0.3179, allocations: 42.92 kB / 1.037 GB, free: 6.961 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.944e-05/0.3179, allocations: 23.42 kB / 1.037 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3179, allocations: 0 / 1.037 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of Templates: time 0.005749/0.3237, allocations: 2.464 MB / 1.04 GB, free: 4.52 MB / 0.8106 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 -s gbode -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