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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001195/0.0012, allocations: 107 kB / 15.99 MB, free: 6.363 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.001232/0.001232, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.312/1.312, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.423/2.423, allocations: 437 MB / 0.7107 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 64.16 kB / 0.8694 GB, free: 2.504 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.314, allocations: 151.6 MB / 1.017 GB, free: 10.95 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003831/0.3178, allocations: 1.83 MB / 1.019 GB, free: 9.105 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001674/0.3195, allocations: 0.9084 MB / 1.02 GB, free: 8.191 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.3197, allocations: 7.938 kB / 1.02 GB, free: 8.184 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000657/0.3204, allocations: 168.3 kB / 1.02 GB, free: 8.023 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0004585/0.3209, allocations: 159.5 kB / 1.02 GB, free: 7.867 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004903/0.3213, allocations: 197.1 kB / 1.021 GB, free: 7.68 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003341/0.3217, allocations: 235.5 kB / 1.021 GB, free: 7.449 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.3219, allocations: 49.66 kB / 1.021 GB, free: 7.398 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.3221, allocations: 103.6 kB / 1.021 GB, free: 7.297 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002341/0.3223, allocations: 159.5 kB / 1.021 GB, free: 7.141 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.268e-05/0.3224, allocations: 20 kB / 1.021 GB, free: 7.121 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.3225, allocations: 51.97 kB / 1.021 GB, free: 7.07 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.3226, allocations: 83.75 kB / 1.021 GB, free: 6.988 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.3227, allocations: 111.2 kB / 1.021 GB, free: 6.879 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003391/0.3231, allocations: 295.7 kB / 1.022 GB, free: 6.59 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3231, allocations: 4 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.236e-06/0.3231, allocations: 0 / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.008e-05/0.3231, allocations: 3.938 kB / 1.022 GB, free: 6.582 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.0009032/0.324, allocations: 0.603 MB / 1.022 GB, free: 5.93 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.3241, allocations: 12.92 kB / 1.022 GB, free: 5.918 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.275e-05/0.3242, allocations: 32.5 kB / 1.022 GB, free: 5.887 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005404/0.3247, allocations: 410.3 kB / 1.023 GB, free: 5.445 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.3247, allocations: 8.375 kB / 1.023 GB, free: 5.438 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.3248, allocations: 8.125 kB / 1.023 GB, free: 5.43 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.3249, allocations: 81.59 kB / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.325, allocations: 0 / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.325, allocations: 4 kB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.325, allocations: 0 / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/0.3251, allocations: 47.97 kB / 1.023 GB, free: 5.293 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006541/0.3258, allocations: 488.4 kB / 1.023 GB, free: 4.766 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.3259, allocations: 46.55 kB / 1.023 GB, free: 4.711 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.455e-05/0.326, allocations: 16.92 kB / 1.023 GB, free: 4.691 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.326, allocations: 0 / 1.023 GB, free: 4.691 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.3261, allocations: 38.55 kB / 1.023 GB, free: 4.645 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 9.01e-07/0.3261, allocations: 3.938 kB / 1.023 GB, free: 4.641 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.000301/0.3264, allocations: 105.2 kB / 1.024 GB, free: 4.531 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.3264, allocations: 51.41 kB / 1.024 GB, free: 4.469 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000637/0.3271, allocations: 0.5562 MB / 1.024 GB, free: 3.906 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.3271, allocations: 25.7 kB / 1.024 GB, free: 3.875 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.3272, allocations: 172 kB / 1.024 GB, free: 3.703 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.295e-05/0.3273, allocations: 15.75 kB / 1.024 GB, free: 3.688 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.3273, allocations: 17.72 kB / 1.024 GB, free: 3.664 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.3274, allocations: 342.8 kB / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.621e-05/0.3275, allocations: 15.98 kB / 1.025 GB, free: 3.305 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.09e-05/0.3276, allocations: 11.98 kB / 1.025 GB, free: 3.293 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.201e-05/0.3277, allocations: 41.05 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3277, allocations: 0 / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001753/0.3278, allocations: 89.3 kB / 1.025 GB, free: 3.156 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3279, allocations: 6.656 kB / 1.025 GB, free: 3.152 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3279, allocations: 0 / 1.025 GB, free: 3.152 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3279, allocations: 7.938 kB / 1.025 GB, free: 3.145 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.129e-05/0.328, allocations: 11.98 kB / 1.025 GB, free: 3.133 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.249e-06/0.328, allocations: 0 / 1.025 GB, free: 3.133 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.345e-05/0.3281, allocations: 0 / 1.025 GB, free: 3.133 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.3281, allocations: 4 kB / 1.025 GB, free: 3.129 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.0001465/0.3282, allocations: 177.8 kB / 1.025 GB, free: 2.945 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.655e-05/0.3283, allocations: 35.62 kB / 1.025 GB, free: 2.91 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/0.3285, allocations: 104.1 kB / 1.025 GB, free: 2.797 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.3285, allocations: 7.938 kB / 1.025 GB, free: 2.789 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3285, allocations: 0 / 1.025 GB, free: 2.789 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.3286, allocations: 0 / 1.025 GB, free: 2.789 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000276/0.3288, allocations: 281.6 kB / 1.025 GB, free: 2.465 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3288, allocations: 7.875 kB / 1.025 GB, free: 2.457 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.366e-05/0.3289, allocations: 11.98 kB / 1.025 GB, free: 2.445 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3289, allocations: 0 / 1.025 GB, free: 2.445 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.3289, allocations: 0 / 1.025 GB, free: 2.445 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3289, allocations: 3.938 kB / 1.025 GB, free: 2.441 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3289, allocations: 0 / 1.025 GB, free: 2.441 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.3292, allocations: 191.1 kB / 1.026 GB, free: 2.238 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.504e-05/0.3293, allocations: 112.8 kB / 1.026 GB, free: 2.109 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.061e-05/0.3293, allocations: 0 / 1.026 GB, free: 2.109 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.274e-05/0.3294, allocations: 7.938 kB / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-05/0.3294, allocations: 3.984 kB / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.3294, allocations: 0 / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004767/0.3299, allocations: 423.1 kB / 1.026 GB, free: 1.684 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3299, allocations: 0 / 1.026 GB, free: 1.684 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000268/0.3302, allocations: 23.91 kB / 1.026 GB, free: 1.66 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.0008941/0.3311, allocations: 362 kB / 1.027 GB, free: 1.434 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001668/0.3313, allocations: 35.91 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.3313, allocations: 4 kB / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.236e-05/0.3314, allocations: 15.98 kB / 1.027 GB, free: 1.379 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.3318, allocations: 47.19 kB / 1.027 GB, free: 1.34 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009706/0.3328, allocations: 0.6132 MB / 1.027 GB, free: 0.6914 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.3332, allocations: 0.7908 MB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.716e-05/0.3333, allocations: 19.44 kB / 1.028 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.3333, allocations: 0 / 1.028 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of Templates: time 0.006465/0.3398, allocations: 3.531 MB / 1.031 GB, free: 12.33 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 -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