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.001282/0.001282, allocations: 106.6 kB / 16.35 MB, free: 5.824 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.001294/0.001294, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.594/1.594, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.669/2.669, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 66.78 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2896, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003097/0.2927, allocations: 1.78 MB / 1.028 GB, free: 288 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.2943, allocations: 0.9316 MB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.565e-05/0.2944, allocations: 4 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005828/0.295, allocations: 183.9 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004061/0.2954, allocations: 169.9 kB / 1.03 GB, free: 15 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004644/0.2959, allocations: 214.8 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002892/0.2962, allocations: 231.5 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.2963, allocations: 61.66 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.2965, allocations: 103.5 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002051/0.2967, allocations: 151.5 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.88e-05/0.2968, allocations: 20 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.2969, allocations: 43.98 kB / 1.031 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.297, allocations: 83.75 kB / 1.031 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.2971, allocations: 123.1 kB / 1.031 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003774/0.2975, allocations: 354.8 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2975, allocations: 0 / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.968e-06/0.2975, allocations: 4 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.019e-05/0.2975, allocations: 4 kB / 1.031 GB, free: 13.63 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.0007782/0.2983, allocations: 0.6069 MB / 1.032 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.2984, allocations: 8.031 kB / 1.032 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.177e-05/0.2984, allocations: 28.56 kB / 1.032 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005001/0.2989, allocations: 414.3 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.2989, allocations: 384 / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.299, allocations: 12.12 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/0.2991, allocations: 77.61 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.2991, allocations: 4 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.2992, allocations: 0 / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2992, allocations: 3.984 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001281/0.2993, allocations: 47.91 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005717/0.2999, allocations: 476.5 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.3, allocations: 54.48 kB / 1.033 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.005e-05/0.3001, allocations: 16.92 kB / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.3001, allocations: 0 / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.3001, allocations: 34.56 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.3001, allocations: 0 / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0002979/0.3004, allocations: 113.3 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.3005, allocations: 51.41 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006337/0.3011, allocations: 0.5601 MB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.3012, allocations: 25.7 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.3013, allocations: 172 kB / 1.034 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.3013, allocations: 19.73 kB / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-05/0.3014, allocations: 13.72 kB / 1.034 GB, free: 10.72 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.3015, allocations: 342.8 kB / 1.034 GB, free: 10.38 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.825e-05/0.3016, allocations: 11.98 kB / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.005e-05/0.3016, allocations: 15.98 kB / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.205e-05/0.3017, allocations: 36.84 kB / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3017, allocations: 0 / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001569/0.3019, allocations: 93.23 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.3019, allocations: 4 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.3019, allocations: 0 / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.3019, allocations: 7.875 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.554e-05/0.302, allocations: 8 kB / 1.034 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.302, allocations: 4.094 kB / 1.034 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.799e-05/0.3021, allocations: 7.938 kB / 1.034 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.3021, allocations: 8 kB / 1.034 GB, free: 10.17 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.0001376/0.3022, allocations: 178.3 kB / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.297e-05/0.3023, allocations: 31.62 kB / 1.034 GB, free: 9.957 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002005/0.3025, allocations: 96.19 kB / 1.034 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.3025, allocations: 7.875 kB / 1.035 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3025, allocations: 0 / 1.035 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.3025, allocations: 0 / 1.035 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002583/0.3028, allocations: 285.5 kB / 1.035 GB, free: 9.516 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3028, allocations: 0 / 1.035 GB, free: 9.516 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.962e-05/0.3029, allocations: 11.98 kB / 1.035 GB, free: 9.504 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3029, allocations: 0 / 1.035 GB, free: 9.504 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.3029, allocations: 0 / 1.035 GB, free: 9.504 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3029, allocations: 3.938 kB / 1.035 GB, free: 9.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3029, allocations: 0 / 1.035 GB, free: 9.5 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001916/0.3031, allocations: 187.2 kB / 1.035 GB, free: 9.301 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.3032, allocations: 116.7 kB / 1.035 GB, free: 9.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.3032, allocations: 0 / 1.035 GB, free: 9.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.105e-05/0.3033, allocations: 7.938 kB / 1.035 GB, free: 9.16 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.213e-05/0.3034, allocations: 7.984 kB / 1.035 GB, free: 9.152 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.3034, allocations: 0 / 1.035 GB, free: 9.152 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004027/0.3038, allocations: 423 kB / 1.035 GB, free: 8.738 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3038, allocations: 0 / 1.035 GB, free: 8.738 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002546/0.3041, allocations: 20 kB / 1.036 GB, free: 8.719 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.0007787/0.3048, allocations: 358.5 kB / 1.036 GB, free: 8.492 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001635/0.305, allocations: 31.97 kB / 1.036 GB, free: 8.461 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.305, allocations: 0 / 1.036 GB, free: 8.461 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.893e-05/0.3051, allocations: 20 kB / 1.036 GB, free: 8.441 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.3055, allocations: 40.2 kB / 1.036 GB, free: 8.406 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007118/0.3062, allocations: 0.5021 MB / 1.036 GB, free: 7.875 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.3066, allocations: 0.7869 MB / 1.037 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001001/0.3067, allocations: 54.92 kB / 1.037 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.199e-05/0.3067, allocations: 23.42 kB / 1.037 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.3067, allocations: 0 / 1.037 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of Templates: time 0.005512/0.3123, allocations: 2.465 MB / 1.04 GB, free: 4.57 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 cvode -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