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.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.001958/0.001958, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002367/0.002367, allocations: 211.7 kB / 22.24 MB, free: 4.855 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.207/3.207, allocations: 0.5107 GB / 0.8158 GB, free: 17.83 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) [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.002098/0.002098, allocations: 66.66 kB / 1.186 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.334, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003289/0.3373, allocations: 1.786 MB / 1.365 GB, free: 12.31 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001958/0.3392, allocations: 1.089 MB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.717e-05/0.3393, allocations: 3.938 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0005729/0.3399, allocations: 193.6 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0005155/0.3404, allocations: 217.5 kB / 1.367 GB, free: 10.81 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.3409, allocations: 228.8 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003253/0.3412, allocations: 267.3 kB / 1.367 GB, free: 10.33 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.3414, allocations: 56.62 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002061/0.3416, allocations: 111.5 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.3418, allocations: 163.5 kB / 1.367 GB, free: 10 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.583e-05/0.3419, allocations: 20 kB / 1.367 GB, free: 9.984 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001232/0.342, allocations: 59.92 kB / 1.367 GB, free: 9.926 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.3421, allocations: 95.61 kB / 1.368 GB, free: 9.832 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.15e-05/0.3422, allocations: 87.39 kB / 1.368 GB, free: 9.746 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004623/0.3427, allocations: 378.5 kB / 1.368 GB, free: 9.375 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.3427, allocations: 0 / 1.368 GB, free: 9.375 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3427, allocations: 0 / 1.368 GB, free: 9.375 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.3427, allocations: 7.938 kB / 1.368 GB, free: 9.367 MB / 1.061 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.0009106/0.3436, allocations: 0.5547 MB / 1.369 GB, free: 8.781 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3436, allocations: 8.031 kB / 1.369 GB, free: 8.773 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.015e-05/0.3437, allocations: 38.75 kB / 1.369 GB, free: 8.727 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/0.3439, allocations: 44.69 kB / 1.369 GB, free: 8.684 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006998/0.3446, allocations: 368.7 kB / 1.369 GB, free: 8.301 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.3446, allocations: 4.312 kB / 1.369 GB, free: 8.297 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/0.3446, allocations: 11.94 kB / 1.369 GB, free: 8.285 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.3448, allocations: 73.66 kB / 1.369 GB, free: 8.207 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.3448, allocations: 7.938 kB / 1.369 GB, free: 8.199 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.3448, allocations: 4 kB / 1.369 GB, free: 8.195 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.3448, allocations: 0 / 1.369 GB, free: 8.195 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.345, allocations: 43.97 kB / 1.369 GB, free: 8.152 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006691/0.3456, allocations: 427.6 kB / 1.37 GB, free: 7.691 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.3458, allocations: 46.55 kB / 1.37 GB, free: 7.637 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.9e-05/0.3458, allocations: 16.92 kB / 1.37 GB, free: 7.617 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.3459, allocations: 4 kB / 1.37 GB, free: 7.613 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.3459, allocations: 42.48 kB / 1.37 GB, free: 7.562 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.193e-06/0.3459, allocations: 0 / 1.37 GB, free: 7.562 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0003104/0.3462, allocations: 105.4 kB / 1.37 GB, free: 7.453 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.3463, allocations: 55.41 kB / 1.37 GB, free: 7.387 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007486/0.347, allocations: 0.5719 MB / 1.37 GB, free: 6.805 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.347, allocations: 25.7 kB / 1.37 GB, free: 6.773 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.3472, allocations: 184 kB / 1.371 GB, free: 6.59 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.3472, allocations: 7.938 kB / 1.371 GB, free: 6.582 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.217e-05/0.3472, allocations: 13.72 kB / 1.371 GB, free: 6.562 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001814/0.3474, allocations: 350.8 kB / 1.371 GB, free: 6.211 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.889e-05/0.3475, allocations: 12 kB / 1.371 GB, free: 6.199 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.758e-05/0.3475, allocations: 15.98 kB / 1.371 GB, free: 6.184 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.3476, allocations: 36.78 kB / 1.371 GB, free: 6.145 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3476, allocations: 0 / 1.371 GB, free: 6.145 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002468/0.3479, allocations: 93.44 kB / 1.371 GB, free: 6.047 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.3479, allocations: 4 kB / 1.371 GB, free: 6.043 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.3479, allocations: 0 / 1.371 GB, free: 6.043 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.3479, allocations: 7.938 kB / 1.371 GB, free: 6.035 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.319e-05/0.348, allocations: 15.98 kB / 1.371 GB, free: 6.02 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.348, allocations: 0 / 1.371 GB, free: 6.02 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.532e-05/0.3481, allocations: 8.047 kB / 1.371 GB, free: 6.012 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-06/0.3481, allocations: 3.938 kB / 1.371 GB, free: 6.008 MB / 1.061 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.0001776/0.3483, allocations: 185.8 kB / 1.371 GB, free: 5.816 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-05/0.3483, allocations: 27.81 kB / 1.371 GB, free: 5.789 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002358/0.3485, allocations: 112.2 kB / 1.371 GB, free: 5.672 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.3485, allocations: 4 kB / 1.371 GB, free: 5.668 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3486, allocations: 0 / 1.371 GB, free: 5.668 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3486, allocations: 0 / 1.371 GB, free: 5.668 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003046/0.3489, allocations: 240.6 kB / 1.372 GB, free: 5.391 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3489, allocations: 0 / 1.372 GB, free: 5.391 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.58e-05/0.3489, allocations: 4 kB / 1.372 GB, free: 5.387 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.3489, allocations: 4 kB / 1.372 GB, free: 5.383 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.3489, allocations: 7.922 kB / 1.372 GB, free: 5.375 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3489, allocations: 0 / 1.372 GB, free: 5.375 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3489, allocations: 0 / 1.372 GB, free: 5.375 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000226/0.3492, allocations: 191.3 kB / 1.372 GB, free: 5.172 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.516e-05/0.3492, allocations: 35.77 kB / 1.372 GB, free: 5.137 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.3493, allocations: 11.92 kB / 1.372 GB, free: 5.125 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.073e-05/0.3494, allocations: 8 kB / 1.372 GB, free: 5.117 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/0.3494, allocations: 0 / 1.372 GB, free: 5.117 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.3494, allocations: 4 kB / 1.372 GB, free: 5.113 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0005183/0.3499, allocations: 431.1 kB / 1.372 GB, free: 4.691 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.3499, allocations: 0 / 1.372 GB, free: 4.691 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002677/0.3502, allocations: 28 kB / 1.372 GB, free: 4.664 MB / 1.061 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.001816/0.352, allocations: 0.9955 MB / 1.373 GB, free: 3.797 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001517/0.3522, allocations: 35.91 kB / 1.373 GB, free: 3.762 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3522, allocations: 4 kB / 1.373 GB, free: 3.758 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.336e-05/0.3522, allocations: 15.98 kB / 1.373 GB, free: 3.742 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004044/0.3526, allocations: 45.55 kB / 1.373 GB, free: 3.703 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003635/0.3563, allocations: 2.966 MB / 1.376 GB, free: 0.6562 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001978/0.3565, allocations: 186.1 kB / 1.376 GB, free: 468 kB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001195/0.3566, allocations: 55.25 kB / 1.377 GB, free: 412 kB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.3567, allocations: 87.41 kB / 1.377 GB, free: 324 kB / 1.061 GB Notification: Performance of SimCode: time 5.71e-07/0.3567, allocations: 0 / 1.377 GB, free: 324 kB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03209/0.3888, allocations: 6.36 MB / 1.383 GB, free: 10.05 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.69, allocations: 8.062 kB / 1.383 GB, free: 10.05 MB / 1.076 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 840.0] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 18.48510441556573]