Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 96.42 kB / 19.7 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002162/0.002162, allocations: 207.4 kB / 22.99 MB, free: 4.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.537/1.537, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.174/3.174, allocations: 0.49 GB / 0.7959 GB, free: 35.6 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 67.61 kB / 1.155 GB, free: 25.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3103, allocations: 176.1 MB / 1.327 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003249/0.3135, allocations: 1.788 MB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001849/0.3154, allocations: 1.087 MB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.932e-05/0.3155, allocations: 7.938 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005159/0.316, allocations: 203.9 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004798/0.3165, allocations: 207.2 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.3169, allocations: 226.2 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003313/0.3173, allocations: 267.3 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.3174, allocations: 40.45 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.3176, allocations: 115.6 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002282/0.3178, allocations: 175.4 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.261e-05/0.3179, allocations: 27.98 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.318, allocations: 52 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.3181, allocations: 87.73 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.092e-05/0.3182, allocations: 87.34 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004469/0.3186, allocations: 382.4 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3186, allocations: 0 / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3186, allocations: 4 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.63e-06/0.3187, allocations: 0 / 1.332 GB, free: 12.26 MB / 1.029 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.0008581/0.3195, allocations: 0.5508 MB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.3195, allocations: 8.031 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001844/0.3197, allocations: 56.62 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006273/0.3204, allocations: 376.6 kB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.3204, allocations: 8.312 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.3204, allocations: 8.125 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.3206, allocations: 77.66 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3206, allocations: 0 / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.3206, allocations: 0 / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.3206, allocations: 4 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.3207, allocations: 43.97 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005797/0.3213, allocations: 404.2 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.3214, allocations: 46.56 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.538e-05/0.3215, allocations: 20.84 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.3215, allocations: 0 / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.3215, allocations: 34.56 kB / 1.333 GB, free: 10.53 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.3215, allocations: 4 kB / 1.333 GB, free: 10.53 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0002908/0.3218, allocations: 101.5 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.3219, allocations: 59.28 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007222/0.3226, allocations: 0.5797 MB / 1.334 GB, free: 9.762 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.3226, allocations: 25.7 kB / 1.334 GB, free: 9.73 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.3228, allocations: 180 kB / 1.334 GB, free: 9.551 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.3228, allocations: 11.91 kB / 1.334 GB, free: 9.539 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/0.3228, allocations: 17.7 kB / 1.334 GB, free: 9.516 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001702/0.323, allocations: 346.8 kB / 1.335 GB, free: 9.168 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.186e-05/0.323, allocations: 11.92 kB / 1.335 GB, free: 9.156 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.442e-05/0.3231, allocations: 15.98 kB / 1.335 GB, free: 9.141 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.075e-05/0.3232, allocations: 32.84 kB / 1.335 GB, free: 9.105 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3232, allocations: 4 kB / 1.335 GB, free: 9.102 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001811/0.3234, allocations: 89.48 kB / 1.335 GB, free: 9.008 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.3234, allocations: 8 kB / 1.335 GB, free: 9 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.3234, allocations: 0 / 1.335 GB, free: 9 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.3234, allocations: 0 / 1.335 GB, free: 9 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.826e-05/0.3235, allocations: 4 kB / 1.335 GB, free: 8.996 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.3235, allocations: 7.938 kB / 1.335 GB, free: 8.988 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.574e-05/0.3235, allocations: 4.312 kB / 1.335 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-06/0.3235, allocations: 3.938 kB / 1.335 GB, free: 8.98 MB / 1.029 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.0001736/0.3237, allocations: 185.8 kB / 1.335 GB, free: 8.789 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.361e-05/0.3238, allocations: 35.77 kB / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002275/0.324, allocations: 112.3 kB / 1.335 GB, free: 8.637 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.324, allocations: 0 / 1.335 GB, free: 8.637 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.324, allocations: 3.938 kB / 1.335 GB, free: 8.633 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.324, allocations: 0 / 1.335 GB, free: 8.633 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002598/0.3243, allocations: 213.2 kB / 1.335 GB, free: 8.395 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3243, allocations: 0 / 1.335 GB, free: 8.395 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.02e-05/0.3243, allocations: 7.984 kB / 1.335 GB, free: 8.387 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3243, allocations: 3.938 kB / 1.335 GB, free: 8.383 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.3243, allocations: 8 kB / 1.335 GB, free: 8.375 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3243, allocations: 0 / 1.335 GB, free: 8.375 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.3243, allocations: 7.938 kB / 1.335 GB, free: 8.367 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.3246, allocations: 187.2 kB / 1.335 GB, free: 8.168 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.583e-05/0.3247, allocations: 43.8 kB / 1.335 GB, free: 8.125 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.3247, allocations: 0 / 1.335 GB, free: 8.125 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.431e-05/0.3248, allocations: 4 kB / 1.335 GB, free: 8.121 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.94e-05/0.3248, allocations: 7.875 kB / 1.335 GB, free: 8.113 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.3248, allocations: 3.984 kB / 1.335 GB, free: 8.109 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004974/0.3253, allocations: 435.1 kB / 1.336 GB, free: 7.688 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3253, allocations: 4 kB / 1.336 GB, free: 7.684 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002746/0.3256, allocations: 23.98 kB / 1.336 GB, free: 7.66 MB / 1.029 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.00141/0.327, allocations: 369.9 kB / 1.336 GB, free: 7.445 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001631/0.3272, allocations: 39.92 kB / 1.336 GB, free: 7.406 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3272, allocations: 0 / 1.336 GB, free: 7.406 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.431e-05/0.3272, allocations: 15.98 kB / 1.336 GB, free: 7.391 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004069/0.3276, allocations: 49.69 kB / 1.336 GB, free: 7.348 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008357/0.3285, allocations: 0.5339 MB / 1.337 GB, free: 6.777 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002014/0.3287, allocations: 190.1 kB / 1.337 GB, free: 6.574 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001068/0.3288, allocations: 47.27 kB / 1.337 GB, free: 6.527 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.165e-05/0.3289, allocations: 23.44 kB / 1.337 GB, free: 6.504 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3289, allocations: 0 / 1.337 GB, free: 6.504 MB / 1.029 GB Notification: Performance of Templates: time 0.006797/0.3357, allocations: 2.913 MB / 1.34 GB, free: 3.613 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.753708770003868]