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.0008058/0.0008058, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008388/0.0008388, allocations: 165.9 kB / 22.45 MB, free: 2.109 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 0.8798/0.8798, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.631/1.631, allocations: 359 MB / 0.6037 GB, free: 11.08 MB / 0.573 GB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 0.9505 GB, free: 3.52 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.335e-05/2.525e-05, allocations: 9.172 kB / 0.9505 GB, free: 3.512 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00325/0.003275, allocations: 1.792 MB / 0.9522 GB, free: 1.703 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001872/0.005147, allocations: 1.079 MB / 0.9533 GB, free: 0.6172 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.005283, allocations: 7.938 kB / 0.9533 GB, free: 0.6094 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0005543/0.005837, allocations: 187.9 kB / 0.9535 GB, free: 440 kB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0005987/0.006436, allocations: 219.5 kB / 0.9537 GB, free: 224 kB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004988/0.006935, allocations: 218.6 kB / 0.9539 GB, free: 8 kB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0003875/0.007322, allocations: 279.4 kB / 0.9542 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.00748, allocations: 28.58 kB / 0.9542 GB, free: 15.7 MB / 0.9167 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002898/0.007769, allocations: 147.6 kB / 0.9543 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.007996, allocations: 151.7 kB / 0.9545 GB, free: 15.41 MB / 0.9167 GB Notification: Performance of NFPackage.collectConstants: time 3.949e-05/0.008036, allocations: 20 kB / 0.9545 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.008161, allocations: 51.92 kB / 0.9546 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.008266, allocations: 91.69 kB / 0.9546 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 7.729e-05/0.008343, allocations: 67.77 kB / 0.9547 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.0004394/0.008783, allocations: 366.7 kB / 0.9551 GB, free: 14.82 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.008786, allocations: 4 kB / 0.9551 GB, free: 14.82 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.383e-06/0.008787, allocations: 0 / 0.9551 GB, free: 14.82 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.008793, allocations: 0 / 0.9551 GB, free: 14.82 MB / 0.9167 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.001053/0.009846, allocations: 0.5547 MB / 0.9556 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.009895, allocations: 8.031 kB / 0.9556 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.843e-05/0.009934, allocations: 34.75 kB / 0.9556 GB, free: 14.18 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.01012, allocations: 48.69 kB / 0.9557 GB, free: 14.13 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006316/0.01075, allocations: 371.9 kB / 0.956 GB, free: 13.75 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.01076, allocations: 8.312 kB / 0.956 GB, free: 13.74 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.01078, allocations: 12.38 kB / 0.9561 GB, free: 13.73 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001791/0.01096, allocations: 77.97 kB / 0.9561 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.01097, allocations: 0 / 0.9561 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.01098, allocations: 0 / 0.9561 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.01099, allocations: 8 kB / 0.9561 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001173/0.01111, allocations: 43.97 kB / 0.9562 GB, free: 13.59 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005861/0.01169, allocations: 439.5 kB / 0.9566 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001352/0.01183, allocations: 46.55 kB / 0.9566 GB, free: 13.07 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.643e-05/0.01187, allocations: 24.84 kB / 0.9567 GB, free: 13.04 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.0119, allocations: 4 kB / 0.9567 GB, free: 13.04 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.01192, allocations: 30.56 kB / 0.9567 GB, free: 13 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.01192, allocations: 4 kB / 0.9567 GB, free: 12.99 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3): time 0.0002774/0.0122, allocations: 97.48 kB / 0.9568 GB, free: 12.89 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.01223, allocations: 51.41 kB / 0.9568 GB, free: 12.83 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006494/0.01288, allocations: 0.5796 MB / 0.9574 GB, free: 12.24 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.0129, allocations: 25.7 kB / 0.9574 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.01303, allocations: 184 kB / 0.9576 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.125e-05/0.01305, allocations: 7.906 kB / 0.9576 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.01308, allocations: 17.72 kB / 0.9576 GB, free: 11.99 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.0132, allocations: 350.8 kB / 0.958 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.208e-05/0.01325, allocations: 11.94 kB / 0.958 GB, free: 11.63 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.488e-05/0.01328, allocations: 11.98 kB / 0.958 GB, free: 11.62 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.565e-05/0.01336, allocations: 32.84 kB / 0.958 GB, free: 11.58 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.01336, allocations: 0 / 0.958 GB, free: 11.58 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001526/0.01351, allocations: 89.48 kB / 0.9581 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.01353, allocations: 10.66 kB / 0.9581 GB, free: 11.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.01353, allocations: 0 / 0.9581 GB, free: 11.48 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.01355, allocations: 4 kB / 0.9581 GB, free: 11.48 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.902e-05/0.01362, allocations: 7.984 kB / 0.9581 GB, free: 11.47 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.01362, allocations: 7.938 kB / 0.9581 GB, free: 11.46 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.676e-05/0.01368, allocations: 7.891 kB / 0.9582 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.01369, allocations: 0 / 0.9582 GB, free: 11.45 MB / 0.9167 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.0001464/0.01383, allocations: 185.8 kB / 0.9583 GB, free: 11.26 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.29e-05/0.01389, allocations: 31.81 kB / 0.9584 GB, free: 11.23 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.01409, allocations: 96.42 kB / 0.9584 GB, free: 11.12 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.01409, allocations: 0 / 0.9584 GB, free: 11.12 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.0141, allocations: 4 kB / 0.9585 GB, free: 11.12 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.862e-06/0.0141, allocations: 7.922 kB / 0.9585 GB, free: 11.11 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002694/0.01437, allocations: 236.7 kB / 0.9587 GB, free: 10.84 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.01437, allocations: 7.938 kB / 0.9587 GB, free: 10.83 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.216e-05/0.01442, allocations: 7.984 kB / 0.9587 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.01442, allocations: 3.938 kB / 0.9587 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.01443, allocations: 0 / 0.9587 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.01443, allocations: 0 / 0.9587 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.01443, allocations: 4 kB / 0.9587 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.01462, allocations: 195.5 kB / 0.9589 GB, free: 10.61 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.594e-05/0.01469, allocations: 47.83 kB / 0.9589 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.543e-05/0.01471, allocations: 0 / 0.9589 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.997e-05/0.01479, allocations: 4 kB / 0.9589 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.01483, allocations: 11.94 kB / 0.959 GB, free: 10.55 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.01483, allocations: 3.984 kB / 0.959 GB, free: 10.54 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0004465/0.01528, allocations: 431.1 kB / 0.9594 GB, free: 10.13 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1e-07/0.01528, allocations: 0 / 0.9594 GB, free: 10.13 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0003131/0.01559, allocations: 31.94 kB / 0.9594 GB, free: 10.1 MB / 0.9167 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.001293/0.01689, allocations: 0.9897 MB / 0.9604 GB, free: 9.234 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001297/0.01702, allocations: 27.98 kB / 0.9604 GB, free: 9.207 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01702, allocations: 0 / 0.9604 GB, free: 9.207 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 3.553e-05/0.01705, allocations: 15.98 kB / 0.9604 GB, free: 9.191 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.01746, allocations: 45.42 kB / 0.9605 GB, free: 9.145 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002856/0.02031, allocations: 2.978 MB / 0.9634 GB, free: 6.094 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.02044, allocations: 182.1 kB / 0.9635 GB, free: 5.895 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 9.768e-05/0.02053, allocations: 51.25 kB / 0.9636 GB, free: 5.844 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.02064, allocations: 100.5 kB / 0.9637 GB, free: 5.746 MB / 0.9167 GB Notification: Performance of SimCode: time 5.91e-07/0.02064, allocations: 0 / 0.9637 GB, free: 5.746 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.04522, allocations: 6.499 MB / 0.97 GB, free: 15.34 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.332/7.377, allocations: 4.875 kB / 0.97 GB, free: 15.34 MB / 0.9323 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 420.0] 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: 11.271859315223992]