Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.217/2.217, allocations: 387.4 MB / 394.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 172.9 kB / 487.4 MB, free: 5.016 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 221.5 MB / 0.7824 GB, free: 0.9531 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009243/0.0009243, allocations: 87.97 kB / 0.9219 GB, free: 2.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.788e-05/1.789e-05, allocations: 1.625 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2117, allocations: 142.4 MB / 1.206 GB, free: 43.82 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7687/0.9804, allocations: 152.1 MB / 1.355 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.9807, allocations: 97.8 kB / 1.355 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01327/0.994, allocations: 5.421 MB / 1.36 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.753e-06/0.9941, allocations: 0 / 1.36 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.719e-05/0.9941, allocations: 7.875 kB / 1.36 GB, free: 33.73 MB / 0.8386 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.0004338/0.9945, allocations: 0.4916 MB / 1.36 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.9946, allocations: 12.09 kB / 1.36 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.514e-05/0.9947, allocations: 35.25 kB / 1.36 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005276/0.9952, allocations: 425.2 kB / 1.361 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.9952, allocations: 3.812 kB / 1.361 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.9952, allocations: 3.984 kB / 1.361 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.318e-05/0.9953, allocations: 34.92 kB / 1.361 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.677e-05/0.9954, allocations: 65.44 kB / 1.361 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.9954, allocations: 0 / 1.361 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.9955, allocations: 0 / 1.361 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.9955, allocations: 0 / 1.361 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005453/0.996, allocations: 478.5 kB / 1.361 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.46e-05/0.9961, allocations: 42.34 kB / 1.362 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.434e-05/0.9961, allocations: 14.14 kB / 1.362 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.9962, allocations: 0 / 1.362 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.9962, allocations: 41.56 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 9.01e-07/0.9962, allocations: 0 / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001744/0.9964, allocations: 76.45 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.653e-05/0.9964, allocations: 54.78 kB / 1.362 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005175/0.9969, allocations: 486.3 kB / 1.362 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.887e-06/0.9969, allocations: 25.7 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.989e-05/0.997, allocations: 175.4 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.59e-05/0.9971, allocations: 11.31 kB / 1.362 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-06/0.9971, allocations: 4 kB / 1.362 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.9972, allocations: 343.2 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.908e-05/0.9972, allocations: 10.23 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.467e-05/0.9973, allocations: 10.84 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.402e-05/0.9973, allocations: 10.84 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.9973, allocations: 0 / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.498e-05/0.9974, allocations: 78.3 kB / 1.363 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.9974, allocations: 9.875 kB / 1.363 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.9974, allocations: 0 / 1.363 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.9974, allocations: 4 kB / 1.363 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.336e-05/0.9975, allocations: 7.797 kB / 1.363 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.9975, allocations: 7.891 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.806e-05/0.9976, allocations: 11.34 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.9976, allocations: 0 / 1.363 GB, free: 31.95 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.551e-05/0.9977, allocations: 102.2 kB / 1.363 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001035/0.9978, allocations: 82.28 kB / 1.363 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.577e-05/0.9978, allocations: 31.36 kB / 1.363 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.998, allocations: 97.52 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.998, allocations: 3.844 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.998, allocations: 0 / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.998, allocations: 0 / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.9982, allocations: 282.6 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.9982, allocations: 3.812 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.963e-05/0.9983, allocations: 7.219 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.9983, allocations: 0 / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.9983, allocations: 3.812 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.9983, allocations: 0 / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.9983, allocations: 7.953 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.9984, allocations: 175.9 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.05e-05/0.9985, allocations: 132.8 kB / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.9986, allocations: 3.75 kB / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.599e-05/0.9987, allocations: 7.25 kB / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.844e-05/0.9987, allocations: 0 / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-06/0.9987, allocations: 3.953 kB / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003396/0.9991, allocations: 392.3 kB / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9991, allocations: 0 / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002594/0.9994, allocations: 31.06 kB / 1.364 GB, free: 31.19 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008955/1, allocations: 0.9067 MB / 1.365 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.073e-05/1, allocations: 21.28 kB / 1.365 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/1, allocations: 3.969 kB / 1.365 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.1e-05/1, allocations: 6.594 kB / 1.365 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/1.001, allocations: 49.81 kB / 1.365 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007161/1.001, allocations: 485.4 kB / 1.366 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/1.002, allocations: 0.7948 MB / 1.366 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001063/1.002, allocations: 53.59 kB / 1.366 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/1.002, allocations: 89.19 kB / 1.366 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/1.002, allocations: 0 / 1.366 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/1.023, allocations: 4.777 MB / 1.371 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001786/1.023, allocations: 214.5 kB / 1.371 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.93, allocations: 0 / 1.371 GB, free: 28.88 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat does not exist to compare? outputFormat=mat