Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001558/0.001558, allocations: 117 kB / 16.37 MB, free: 6.012 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.001796/0.001796, allocations: 188.8 kB / 17.3 MB, free: 5.613 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.317/1.317, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.423/2.423, allocations: 437.1 MB / 0.7112 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 64.69 kB / 0.8707 GB, free: 1.473 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2699, allocations: 151.6 MB / 1.019 GB, free: 9.879 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003203/0.2731, allocations: 1.773 MB / 1.021 GB, free: 8.09 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.2746, allocations: 0.9277 MB / 1.021 GB, free: 7.156 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.2747, allocations: 4 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0005092/0.2752, allocations: 176.8 kB / 1.022 GB, free: 6.984 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0004114/0.2756, allocations: 169.8 kB / 1.022 GB, free: 6.82 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004801/0.2761, allocations: 212.2 kB / 1.022 GB, free: 6.617 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003119/0.2765, allocations: 239.5 kB / 1.022 GB, free: 6.383 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.2766, allocations: 65.62 kB / 1.022 GB, free: 6.316 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.2768, allocations: 95.67 kB / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.277, allocations: 151.5 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.23e-05/0.2771, allocations: 20 kB / 1.023 GB, free: 6.055 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.798e-05/0.2772, allocations: 43.98 kB / 1.023 GB, free: 6.012 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.694e-05/0.2773, allocations: 91.69 kB / 1.023 GB, free: 5.922 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.2774, allocations: 115.2 kB / 1.023 GB, free: 5.809 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003443/0.2777, allocations: 358.8 kB / 1.023 GB, free: 5.457 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2777, allocations: 4 kB / 1.023 GB, free: 5.453 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.154e-06/0.2778, allocations: 0 / 1.023 GB, free: 5.453 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.2778, allocations: 0 / 1.023 GB, free: 5.453 MB / 0.795 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.0008334/0.2786, allocations: 0.603 MB / 1.024 GB, free: 4.801 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.2786, allocations: 8.922 kB / 1.024 GB, free: 4.793 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.344e-05/0.2787, allocations: 28.56 kB / 1.024 GB, free: 4.766 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000531/0.2793, allocations: 422.3 kB / 1.024 GB, free: 4.312 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.2793, allocations: 4.375 kB / 1.024 GB, free: 4.309 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.2793, allocations: 8.125 kB / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.2795, allocations: 81.59 kB / 1.024 GB, free: 4.215 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.2795, allocations: 0 / 1.024 GB, free: 4.215 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.2795, allocations: 3.938 kB / 1.024 GB, free: 4.211 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2795, allocations: 0 / 1.024 GB, free: 4.211 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.2796, allocations: 47.97 kB / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005751/0.2802, allocations: 480.5 kB / 1.025 GB, free: 3.645 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001218/0.2804, allocations: 46.55 kB / 1.025 GB, free: 3.59 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.105e-05/0.2804, allocations: 16.92 kB / 1.025 GB, free: 3.57 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.2804, allocations: 4 kB / 1.025 GB, free: 3.566 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.2805, allocations: 34.55 kB / 1.025 GB, free: 3.523 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2805, allocations: 4 kB / 1.025 GB, free: 3.52 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0002783/0.2808, allocations: 105.2 kB / 1.025 GB, free: 3.41 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.2808, allocations: 51.41 kB / 1.025 GB, free: 3.348 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006002/0.2814, allocations: 0.5562 MB / 1.026 GB, free: 2.785 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.2814, allocations: 33.64 kB / 1.026 GB, free: 2.746 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.2816, allocations: 168 kB / 1.026 GB, free: 2.578 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.2816, allocations: 19.72 kB / 1.026 GB, free: 2.559 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.2816, allocations: 17.72 kB / 1.026 GB, free: 2.535 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.2818, allocations: 342.8 kB / 1.026 GB, free: 2.191 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.956e-05/0.2818, allocations: 15.98 kB / 1.026 GB, free: 2.176 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.107e-05/0.2819, allocations: 16.09 kB / 1.026 GB, free: 2.16 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.424e-05/0.2819, allocations: 32.78 kB / 1.026 GB, free: 2.125 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.282, allocations: 0 / 1.026 GB, free: 2.125 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000169/0.2821, allocations: 97.55 kB / 1.026 GB, free: 2.023 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.2822, allocations: 4 kB / 1.026 GB, free: 2.02 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.2822, allocations: 4 kB / 1.026 GB, free: 2.016 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.2822, allocations: 3.938 kB / 1.026 GB, free: 2.012 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.036e-05/0.2823, allocations: 11.98 kB / 1.026 GB, free: 2 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.2823, allocations: 0 / 1.026 GB, free: 2 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.481e-05/0.2823, allocations: 4 kB / 1.026 GB, free: 1.996 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-06/0.2823, allocations: 0 / 1.026 GB, free: 1.996 MB / 0.795 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.0001368/0.2825, allocations: 178.5 kB / 1.026 GB, free: 1.812 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.504e-05/0.2826, allocations: 31.62 kB / 1.026 GB, free: 1.781 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002096/0.2828, allocations: 112.1 kB / 1.027 GB, free: 1.66 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2828, allocations: 3.938 kB / 1.027 GB, free: 1.656 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2828, allocations: 0 / 1.027 GB, free: 1.656 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2828, allocations: 0 / 1.027 GB, free: 1.656 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002588/0.2831, allocations: 281.5 kB / 1.027 GB, free: 1.332 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2831, allocations: 0 / 1.027 GB, free: 1.332 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.091e-05/0.2831, allocations: 11.98 kB / 1.027 GB, free: 1.32 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2831, allocations: 0 / 1.027 GB, free: 1.32 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.2831, allocations: 0 / 1.027 GB, free: 1.32 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.2832, allocations: 3.938 kB / 1.027 GB, free: 1.316 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2832, allocations: 4 kB / 1.027 GB, free: 1.312 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001891/0.2834, allocations: 183.2 kB / 1.027 GB, free: 1.117 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.2835, allocations: 116.8 kB / 1.027 GB, free: 0.9844 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.2835, allocations: 3.938 kB / 1.027 GB, free: 0.9805 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.564e-05/0.2836, allocations: 7.938 kB / 1.027 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.475e-05/0.2836, allocations: 3.984 kB / 1.027 GB, free: 0.9688 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.2836, allocations: 0 / 1.027 GB, free: 0.9688 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004119/0.2841, allocations: 423.1 kB / 1.028 GB, free: 0.5547 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2841, allocations: 0 / 1.028 GB, free: 0.5547 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002622/0.2843, allocations: 23.91 kB / 1.028 GB, free: 0.5312 MB / 0.795 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.0007777/0.2851, allocations: 366.4 kB / 1.028 GB, free: 308 kB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001455/0.2853, allocations: 31.97 kB / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2853, allocations: 0 / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.006e-05/0.2854, allocations: 20.02 kB / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.2858, allocations: 47.66 kB / 1.028 GB, free: 212 kB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007089/0.2865, allocations: 0.4983 MB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.2868, allocations: 0.7909 MB / 1.029 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.591e-05/0.2869, allocations: 38.94 kB / 1.029 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.523e-05/0.287, allocations: 23.42 kB / 1.029 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of SimCode: time 2.9e-07/0.287, allocations: 4 kB / 1.029 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of Templates: time 0.005471/0.2925, allocations: 2.463 MB / 1.032 GB, free: 12.36 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches