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.001555/0.001555, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001885/0.001885, allocations: 189.3 kB / 16.25 MB, free: 6.633 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.446/1.446, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.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.693/2.693, allocations: 437 MB / 0.71 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 63.89 kB / 0.8687 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7268/0.7282, allocations: 151.6 MB / 1.017 GB, free: 2.703 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00333/0.7316, allocations: 1.838 MB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.733, allocations: 0.9046 MB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.594e-05/0.7331, allocations: 3.938 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005605/0.7337, allocations: 175.8 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003588/0.734, allocations: 159.4 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.7345, allocations: 192.8 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.7348, allocations: 235.5 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001498/0.7349, allocations: 53.66 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.7351, allocations: 99.61 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/0.7353, allocations: 155.5 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.69e-05/0.7353, allocations: 20 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.676e-05/0.7354, allocations: 47.98 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.651e-05/0.7355, allocations: 91.73 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.765e-05/0.7356, allocations: 115.2 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003485/0.736, allocations: 348.8 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.265e-05/0.736, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.764e-06/0.736, allocations: 3.938 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.736, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 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.0007398/0.7368, allocations: 0.603 MB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.7368, allocations: 12.03 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.04e-05/0.7369, allocations: 32.5 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004805/0.7374, allocations: 410.2 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.7374, allocations: 12.38 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.7374, allocations: 8.125 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.7376, allocations: 73.61 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.7376, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.7376, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.7376, allocations: 4 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.7378, allocations: 47.95 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005543/0.7383, allocations: 488.5 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/0.7385, allocations: 46.55 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.042e-05/0.7385, allocations: 16.92 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.7385, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.7386, allocations: 46.44 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.7386, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002754/0.7389, allocations: 105.3 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/0.739, allocations: 55.34 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005772/0.7395, allocations: 0.5524 MB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.7396, allocations: 25.7 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.7397, allocations: 172 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.7397, allocations: 11.89 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.232e-05/0.7398, allocations: 21.72 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.7399, allocations: 338.8 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.448e-05/0.74, allocations: 15.98 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.816e-05/0.74, allocations: 11.98 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.201e-05/0.7401, allocations: 37.06 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.7401, allocations: 0 / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001578/0.7403, allocations: 97.28 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.7403, allocations: 9.562 kB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.7403, allocations: 0 / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.7403, allocations: 3.938 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.352e-05/0.7404, allocations: 8 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.7404, allocations: 3.984 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.852e-05/0.7405, allocations: 3.906 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.7405, allocations: 4 kB / 1.024 GB, free: 10.82 MB / 0.7794 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.0001576/0.7407, allocations: 177.8 kB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.194e-05/0.7407, allocations: 27.62 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002191/0.741, allocations: 108.1 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.741, allocations: 7.938 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.741, allocations: 0 / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.741, allocations: 0 / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002629/0.7413, allocations: 277.5 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.7413, allocations: 0 / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.065e-05/0.7413, allocations: 11.98 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.7413, allocations: 0 / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.447e-06/0.7413, allocations: 4 kB / 1.025 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.7413, allocations: 7.938 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.7414, allocations: 0 / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001942/0.7416, allocations: 183.1 kB / 1.025 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.876e-05/0.7416, allocations: 116.8 kB / 1.025 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.02e-05/0.7417, allocations: 4 kB / 1.025 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.7418, allocations: 7.938 kB / 1.025 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.396e-05/0.7418, allocations: 7.922 kB / 1.025 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.7418, allocations: 4 kB / 1.025 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000433/0.7423, allocations: 419.1 kB / 1.026 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7423, allocations: 3.938 kB / 1.026 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002601/0.7425, allocations: 27.91 kB / 1.026 GB, free: 9.352 MB / 0.7794 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.0009257/0.7435, allocations: 359 kB / 1.026 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001732/0.7437, allocations: 39.89 kB / 1.026 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.7437, allocations: 0 / 1.026 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.049e-05/0.7437, allocations: 16 kB / 1.026 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004951/0.7442, allocations: 42.45 kB / 1.026 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008944/0.7451, allocations: 0.5727 MB / 1.027 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/0.7455, allocations: 0.787 MB / 1.027 GB, free: 7.625 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001073/0.7457, allocations: 42.92 kB / 1.027 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.557e-05/0.7457, allocations: 31.42 kB / 1.027 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of SimCode: time 3.7e-07/0.7457, allocations: 0 / 1.027 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of Templates: time 0.006039/0.7518, allocations: 2.434 MB / 1.03 GB, free: 5.145 MB / 0.7794 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/jenkins/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