Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001703/0.001703, allocations: 80.41 kB / 20.23 MB, free: 4.199 MB / 18.57 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.001567/0.001567, allocations: 161.7 kB / 23.55 MB, free: 0.8906 MB / 18.57 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.474/1.474, allocations: 177.1 MB / 203.9 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.863/2.863, allocations: 359 MB / 0.6048 GB, free: 10.96 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 0.7864 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.712e-05/2.918e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.004226/0.004256, allocations: 1.799 MB / 0.7881 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002552/0.006808, allocations: 1.086 MB / 0.7892 GB, free: 9.941 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.006942, allocations: 8.438 kB / 0.7892 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0004826/0.007425, allocations: 136.3 kB / 0.7893 GB, free: 9.801 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0005694/0.007994, allocations: 200.1 kB / 0.7895 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005733/0.008568, allocations: 212.6 kB / 0.7897 GB, free: 9.398 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0004737/0.009041, allocations: 275.9 kB / 0.79 GB, free: 9.129 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.0092, allocations: 37.91 kB / 0.79 GB, free: 9.098 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003649/0.009565, allocations: 139.7 kB / 0.7902 GB, free: 8.961 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002821/0.009847, allocations: 155.7 kB / 0.7903 GB, free: 8.809 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.362e-05/0.009901, allocations: 26.97 kB / 0.7903 GB, free: 8.785 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/0.01004, allocations: 63.84 kB / 0.7904 GB, free: 8.723 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.01017, allocations: 79.77 kB / 0.7905 GB, free: 8.645 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.01028, allocations: 71.7 kB / 0.7905 GB, free: 8.574 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0005566/0.01084, allocations: 362.8 kB / 0.7909 GB, free: 8.219 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.01084, allocations: 0 / 0.7909 GB, free: 8.219 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.483e-06/0.01084, allocations: 0 / 0.7909 GB, free: 8.219 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 9.628e-06/0.01085, allocations: 0 / 0.7909 GB, free: 8.219 MB / 0.7448 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.001101/0.01195, allocations: 0.5481 MB / 0.7914 GB, free: 7.641 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.01199, allocations: 12.03 kB / 0.7914 GB, free: 7.629 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002395/0.01223, allocations: 48.69 kB / 0.7915 GB, free: 7.582 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007934/0.01302, allocations: 376.5 kB / 0.7918 GB, free: 7.191 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.01304, allocations: 4.875 kB / 0.7918 GB, free: 7.188 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.01305, allocations: 5.969 kB / 0.7918 GB, free: 7.184 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.01326, allocations: 90.08 kB / 0.7919 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.01327, allocations: 3.938 kB / 0.7919 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.01328, allocations: 0 / 0.7919 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.413e-06/0.01329, allocations: 4.625 kB / 0.7919 GB, free: 7.082 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000148/0.01344, allocations: 48.72 kB / 0.792 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006841/0.01412, allocations: 400.2 kB / 0.7924 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.01427, allocations: 43.19 kB / 0.7924 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.993e-05/0.01433, allocations: 21.47 kB / 0.7924 GB, free: 6.539 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.01436, allocations: 4.719 kB / 0.7924 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.01439, allocations: 34.56 kB / 0.7925 GB, free: 6.492 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.01439, allocations: 1.375 kB / 0.7925 GB, free: 6.492 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0003669/0.01476, allocations: 109.4 kB / 0.7926 GB, free: 6.379 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.01481, allocations: 53.16 kB / 0.7926 GB, free: 6.316 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008328/0.01564, allocations: 0.5718 MB / 0.7932 GB, free: 5.738 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.01566, allocations: 29.7 kB / 0.7932 GB, free: 5.703 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001738/0.01584, allocations: 180 kB / 0.7934 GB, free: 5.523 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.01586, allocations: 11.89 kB / 0.7934 GB, free: 5.512 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/0.0159, allocations: 19.23 kB / 0.7934 GB, free: 5.488 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000425/0.01632, allocations: 346.8 kB / 0.7937 GB, free: 5.141 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.858e-05/0.01639, allocations: 15.98 kB / 0.7938 GB, free: 5.125 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.827e-05/0.01644, allocations: 14.47 kB / 0.7938 GB, free: 5.113 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.01654, allocations: 40.72 kB / 0.7938 GB, free: 5.07 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.01655, allocations: 0 / 0.7938 GB, free: 5.07 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002021/0.01675, allocations: 93.44 kB / 0.7939 GB, free: 4.973 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.01676, allocations: 8 kB / 0.7939 GB, free: 4.965 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.01677, allocations: 1.906 kB / 0.7939 GB, free: 4.965 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.01679, allocations: 0 / 0.7939 GB, free: 4.965 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.156e-05/0.01686, allocations: 4 kB / 0.7939 GB, free: 4.961 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.01686, allocations: 0 / 0.7939 GB, free: 4.961 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.333e-05/0.01694, allocations: 7.984 kB / 0.7939 GB, free: 4.953 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.01695, allocations: 4.438 kB / 0.7939 GB, free: 4.949 MB / 0.7448 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.0001993/0.01715, allocations: 182.3 kB / 0.7941 GB, free: 4.762 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.015e-05/0.01722, allocations: 33.56 kB / 0.7941 GB, free: 4.73 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002637/0.01748, allocations: 104.7 kB / 0.7942 GB, free: 4.613 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.01748, allocations: 48 / 0.7942 GB, free: 4.613 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.01749, allocations: 3.984 kB / 0.7942 GB, free: 4.609 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.01749, allocations: 2.281 kB / 0.7942 GB, free: 4.609 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003003/0.01779, allocations: 221.1 kB / 0.7944 GB, free: 4.363 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.01779, allocations: 0 / 0.7944 GB, free: 4.363 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.064e-05/0.01784, allocations: 7.984 kB / 0.7944 GB, free: 4.355 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.01784, allocations: 0 / 0.7944 GB, free: 4.355 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.01785, allocations: 4 kB / 0.7945 GB, free: 4.352 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.01786, allocations: 4.516 kB / 0.7945 GB, free: 4.348 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01786, allocations: 0 / 0.7945 GB, free: 4.348 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002629/0.01812, allocations: 195.9 kB / 0.7946 GB, free: 4.141 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.198e-05/0.0182, allocations: 36.95 kB / 0.7947 GB, free: 4.105 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.162e-05/0.01825, allocations: 4 kB / 0.7947 GB, free: 4.102 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.429e-05/0.01834, allocations: 0 / 0.7947 GB, free: 4.102 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.591e-05/0.01838, allocations: 4.672 kB / 0.7947 GB, free: 4.098 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.01838, allocations: 4 kB / 0.7947 GB, free: 4.094 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.000572/0.01895, allocations: 435.8 kB / 0.7951 GB, free: 3.668 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01895, allocations: 0 / 0.7951 GB, free: 3.668 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002891/0.01924, allocations: 32.73 kB / 0.7951 GB, free: 3.637 MB / 0.7448 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.001695/0.02094, allocations: 391.9 kB / 0.7955 GB, free: 3.41 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001582/0.0211, allocations: 28.77 kB / 0.7955 GB, free: 3.383 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.0211, allocations: 0 / 0.7955 GB, free: 3.383 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 6.012e-05/0.02116, allocations: 27.55 kB / 0.7956 GB, free: 3.359 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.0216, allocations: 50.23 kB / 0.7956 GB, free: 3.316 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000998/0.02259, allocations: 0.5298 MB / 0.7961 GB, free: 2.762 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.02283, allocations: 187.5 kB / 0.7963 GB, free: 2.559 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001248/0.02295, allocations: 48.47 kB / 0.7964 GB, free: 2.516 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.2e-05/0.02303, allocations: 24.5 kB / 0.7964 GB, free: 2.492 MB / 0.7448 GB Notification: Performance of SimCode: time 4.91e-07/0.02303, allocations: 4 kB / 0.7964 GB, free: 2.488 MB / 0.7448 GB Notification: Performance of Templates: time 0.007441/0.03047, allocations: 2.707 MB / 0.799 GB, free: 15.82 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 7.713063608971424]