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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.495/2.495, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001681/0.001681, allocations: 182.7 kB / 0.4901 GB, free: 2.246 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.77/1.77, allocations: 223.1 MB / 0.7992 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001317, allocations: 102.8 kB / 0.9396 GB, free: 2.793 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005187/0.0005188, allocations: 13.44 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4555/0.456, allocations: 143 MB / 1.229 GB, free: 85.38 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2271/0.6832, allocations: 153.6 MB / 1.379 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/0.6836, allocations: 99.94 kB / 1.379 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01683/0.7005, allocations: 5.48 MB / 1.385 GB, free: 5.969 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.833e-06/0.7005, allocations: 0 / 1.385 GB, free: 5.969 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.182e-05/0.7006, allocations: 4 kB / 1.385 GB, free: 5.965 MB / 0.8855 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.001184/0.7018, allocations: 0.5876 MB / 1.385 GB, free: 5.328 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.84e-05/0.7018, allocations: 15.97 kB / 1.385 GB, free: 5.312 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.766e-05/0.7019, allocations: 34.56 kB / 1.385 GB, free: 5.27 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.702, allocations: 35.58 kB / 1.385 GB, free: 5.234 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009223/0.703, allocations: 417.3 kB / 1.386 GB, free: 4.789 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.703, allocations: 8 kB / 1.386 GB, free: 4.781 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.703, allocations: 4 kB / 1.386 GB, free: 4.777 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.7032, allocations: 77.66 kB / 1.386 GB, free: 4.695 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.7033, allocations: 0 / 1.386 GB, free: 4.695 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.7033, allocations: 4 kB / 1.386 GB, free: 4.691 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.7033, allocations: 0 / 1.386 GB, free: 4.691 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.7034, allocations: 47.97 kB / 1.386 GB, free: 4.645 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.7045, allocations: 0.5081 MB / 1.386 GB, free: 4.086 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001506/0.7047, allocations: 50.94 kB / 1.386 GB, free: 4.027 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.926e-05/0.7047, allocations: 3.953 kB / 1.386 GB, free: 4.023 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.7048, allocations: 34.5 kB / 1.387 GB, free: 3.98 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 2.084e-06/0.7048, allocations: 3.938 kB / 1.387 GB, free: 3.977 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0004101/0.7052, allocations: 113.4 kB / 1.387 GB, free: 3.859 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.7052, allocations: 51.41 kB / 1.387 GB, free: 3.797 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007991/0.7061, allocations: 0.5008 MB / 1.387 GB, free: 3.285 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.7061, allocations: 25.7 kB / 1.387 GB, free: 3.254 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.7063, allocations: 171.9 kB / 1.387 GB, free: 3.082 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.442e-05/0.7063, allocations: 7.906 kB / 1.387 GB, free: 3.074 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.7063, allocations: 0 / 1.387 GB, free: 3.074 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001961/0.7065, allocations: 350.8 kB / 1.388 GB, free: 2.723 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.073e-05/0.7066, allocations: 8 kB / 1.388 GB, free: 2.715 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.826e-05/0.7066, allocations: 23.92 kB / 1.388 GB, free: 2.691 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.234e-05/0.7067, allocations: 15.98 kB / 1.388 GB, free: 2.676 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.7067, allocations: 0 / 1.388 GB, free: 2.676 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002241/0.7069, allocations: 93.31 kB / 1.388 GB, free: 2.578 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.707, allocations: 7.953 kB / 1.388 GB, free: 2.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.707, allocations: 4 kB / 1.388 GB, free: 2.566 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.707, allocations: 3.984 kB / 1.388 GB, free: 2.562 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.915e-05/0.7071, allocations: 8 kB / 1.388 GB, free: 2.555 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.7071, allocations: 0 / 1.388 GB, free: 2.555 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.59e-05/0.7072, allocations: 4 kB / 1.388 GB, free: 2.551 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.7072, allocations: 4 kB / 1.388 GB, free: 2.547 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002156/0.7074, allocations: 186.6 kB / 1.388 GB, free: 2.355 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.338e-05/0.7075, allocations: 31.62 kB / 1.388 GB, free: 2.324 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002941/0.7078, allocations: 108.1 kB / 1.388 GB, free: 2.207 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.7078, allocations: 4 kB / 1.388 GB, free: 2.203 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.7079, allocations: 0 / 1.388 GB, free: 2.203 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.7079, allocations: 0 / 1.388 GB, free: 2.203 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004203/0.7083, allocations: 305.4 kB / 1.388 GB, free: 1.855 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.7083, allocations: 0 / 1.388 GB, free: 1.855 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-05/0.7084, allocations: 15.98 kB / 1.388 GB, free: 1.84 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.7084, allocations: 0 / 1.388 GB, free: 1.84 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.7084, allocations: 0 / 1.388 GB, free: 1.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-05/0.7084, allocations: 4.062 kB / 1.388 GB, free: 1.836 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.7084, allocations: 4.312 kB / 1.388 GB, free: 1.832 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/0.7087, allocations: 199.1 kB / 1.389 GB, free: 1.621 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.7089, allocations: 140.7 kB / 1.389 GB, free: 1.465 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.709, allocations: 0 / 1.389 GB, free: 1.465 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.7091, allocations: 4 kB / 1.389 GB, free: 1.461 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.736e-05/0.7091, allocations: 3.953 kB / 1.389 GB, free: 1.457 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.7091, allocations: 0 / 1.389 GB, free: 1.457 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.000597/0.7097, allocations: 411.1 kB / 1.389 GB, free: 1.062 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7097, allocations: 0 / 1.389 GB, free: 1.062 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003223/0.7101, allocations: 43.83 kB / 1.389 GB, free: 1.02 MB / 0.8855 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 (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.001564/0.7116, allocations: 0.9837 MB / 1.39 GB, free: 144 kB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001801/0.7118, allocations: 31.98 kB / 1.39 GB, free: 112 kB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.7119, allocations: 0 / 1.39 GB, free: 112 kB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.432e-05/0.7119, allocations: 15.98 kB / 1.39 GB, free: 96 kB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.7123, allocations: 47.25 kB / 1.39 GB, free: 48 kB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003417/0.7158, allocations: 1.91 MB / 1.392 GB, free: 14.07 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005047/0.7163, allocations: 0.7911 MB / 1.393 GB, free: 13.26 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.000148/0.7164, allocations: 49.92 kB / 1.393 GB, free: 13.21 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.7166, allocations: 83.41 kB / 1.393 GB, free: 13.12 MB / 0.9011 GB Notification: Performance of SimCode: time 1.192e-06/0.7166, allocations: 0 / 1.393 GB, free: 13.12 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0219/0.7385, allocations: 5.656 MB / 1.399 GB, free: 7.688 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002744/0.7389, allocations: 255.2 kB / 1.399 GB, free: 7.352 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.389/3.128, allocations: 0 / 1.399 GB, free: 7.352 MB / 0.9011 GB (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/linux/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 --timeout=50 --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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat does not exist to compare? outputFormat=mat