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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001059/0.001059, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00914/0.00914, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.445/1.445, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.883/2.883, allocations: 462.7 MB / 0.7364 GB, free: 296 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003403, allocations: 9.438 kB / 0.9028 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3303, allocations: 159.6 MB / 1.059 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002377/0.3327, allocations: 1.482 MB / 1.06 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001517/0.3343, allocations: 0.9083 MB / 1.061 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.3344, allocations: 0 / 1.061 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006434/0.3351, allocations: 171.2 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004759/0.3356, allocations: 147.6 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005567/0.3361, allocations: 194.8 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.3365, allocations: 227.5 kB / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.3367, allocations: 49.66 kB / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.3369, allocations: 79.61 kB / 1.062 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002248/0.3371, allocations: 135.5 kB / 1.062 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.475e-05/0.3372, allocations: 8 kB / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.3373, allocations: 24 kB / 1.062 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.823e-05/0.3374, allocations: 75.67 kB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.3375, allocations: 124.9 kB / 1.062 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003554/0.3379, allocations: 339 kB / 1.063 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3379, allocations: 4 kB / 1.063 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3379, allocations: 0 / 1.063 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.185e-06/0.3379, allocations: 0 / 1.063 GB, free: 1.543 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.0007728/0.3387, allocations: 0.5526 MB / 1.063 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.3387, allocations: 8.031 kB / 1.063 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.796e-05/0.3388, allocations: 32.56 kB / 1.063 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005905/0.3394, allocations: 414.2 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.3394, allocations: 4.375 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.673e-05/0.3395, allocations: 12.12 kB / 1.064 GB, free: 456 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.3396, allocations: 77.66 kB / 1.064 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3397, allocations: 0 / 1.064 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.3397, allocations: 0 / 1.064 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.3397, allocations: 4 kB / 1.064 GB, free: 368 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.3398, allocations: 47.97 kB / 1.064 GB, free: 320 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006281/0.3405, allocations: 496.3 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001309/0.3406, allocations: 46.5 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.056e-05/0.3407, allocations: 24.91 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.949e-05/0.3407, allocations: 8.094 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.3407, allocations: 34.5 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.623e-06/0.3407, allocations: 4 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003052/0.3411, allocations: 101.3 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.3411, allocations: 63.33 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006251/0.3417, allocations: 0.5561 MB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.3418, allocations: 25.7 kB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.3419, allocations: 176 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.3419, allocations: 7.844 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.321e-05/0.342, allocations: 9.719 kB / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3421, allocations: 350.8 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.806e-05/0.3422, allocations: 8 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.412e-05/0.3422, allocations: 19.98 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.464e-05/0.3423, allocations: 37.12 kB / 1.066 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3423, allocations: 0 / 1.066 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001875/0.3425, allocations: 97.28 kB / 1.066 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.3425, allocations: 8 kB / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3425, allocations: 3.938 kB / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.3426, allocations: 7.938 kB / 1.066 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.747e-05/0.3427, allocations: 7.984 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.3427, allocations: 4 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.257e-05/0.3427, allocations: 4 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.3428, allocations: 4 kB / 1.066 GB, free: 14.11 MB / 0.8262 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.0001568/0.3429, allocations: 175.3 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.067e-05/0.343, allocations: 31.61 kB / 1.066 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000227/0.3432, allocations: 104.2 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3432, allocations: 7.938 kB / 1.066 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3432, allocations: 0 / 1.066 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3433, allocations: 0 / 1.066 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000297/0.3436, allocations: 285.5 kB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3436, allocations: 0 / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.726e-05/0.3436, allocations: 11.94 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3436, allocations: 0 / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.3436, allocations: 0 / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3436, allocations: 7.938 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3437, allocations: 0 / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002193/0.3439, allocations: 191.2 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.73e-05/0.344, allocations: 124.6 kB / 1.067 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.344, allocations: 0 / 1.067 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.932e-05/0.3441, allocations: 11.88 kB / 1.067 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.46e-05/0.3442, allocations: 8 kB / 1.067 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.012e-06/0.3442, allocations: 3.984 kB / 1.067 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004433/0.3446, allocations: 415.1 kB / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3446, allocations: 0 / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002622/0.3449, allocations: 32 kB / 1.067 GB, free: 12.62 MB / 0.8262 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.00087/0.3458, allocations: 352.5 kB / 1.067 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001576/0.3459, allocations: 35.97 kB / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3459, allocations: 0 / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.66e-05/0.346, allocations: 19.98 kB / 1.067 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004435/0.3465, allocations: 45.53 kB / 1.067 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008523/0.3473, allocations: 0.5858 MB / 1.068 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/0.3477, allocations: 0.7872 MB / 1.069 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001032/0.3478, allocations: 46.92 kB / 1.069 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.677e-05/0.3479, allocations: 27.42 kB / 1.069 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3479, allocations: 0 / 1.069 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of Templates: time 0.005708/0.3536, allocations: 2.327 MB / 1.071 GB, free: 8.52 MB / 0.8262 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 -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/jenkins/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