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.0.0+maint.om/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.985/2.985, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 5.054/5.054, allocations: 409.2 MB / 0.6838 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000591/0.0005912, allocations: 12 kB / 0.8375 GB, free: 6.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.78/1.781, allocations: 146.8 MB / 0.9809 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.004129/1.785, allocations: 1.448 MB / 0.9823 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002/1.787, allocations: 0.8348 MB / 0.9831 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/1.787, allocations: 4 kB / 0.9831 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008007/1.788, allocations: 141.9 kB / 0.9832 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005384/1.789, allocations: 148.9 kB / 0.9834 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008657/1.79, allocations: 173.1 kB / 0.9835 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003559/1.79, allocations: 139.7 kB / 0.9837 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/1.79, allocations: 45.83 kB / 0.9837 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/1.79, allocations: 83.66 kB / 0.9838 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/1.791, allocations: 127.6 kB / 0.9839 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/1.791, allocations: 4 kB / 0.9839 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001328/1.791, allocations: 27.92 kB / 0.984 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001339/1.791, allocations: 67.75 kB / 0.984 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.341e-05/1.791, allocations: 65.58 kB / 0.9841 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005672/1.792, allocations: 289.6 kB / 0.9844 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/1.792, allocations: 0 / 0.9844 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.877e-06/1.792, allocations: 0 / 0.9844 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.027e-06/1.792, allocations: 4 kB / 0.9844 GB, free: 2.684 MB / 0.7325 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.001079/1.793, allocations: 0.5602 MB / 0.9849 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.189e-05/1.793, allocations: 8.031 kB / 0.9849 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.304e-05/1.793, allocations: 38.56 kB / 0.985 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.831e-05/1.793, allocations: 27.62 kB / 0.985 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008135/1.794, allocations: 397.3 kB / 0.9854 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/1.794, allocations: 4 kB / 0.9854 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/1.794, allocations: 8 kB / 0.9854 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002598/1.794, allocations: 89.55 kB / 0.9855 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/1.794, allocations: 0 / 0.9855 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/1.794, allocations: 0 / 0.9855 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.138e-06/1.794, allocations: 0 / 0.9855 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/1.794, allocations: 47.97 kB / 0.9855 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/1.795, allocations: 0.4886 MB / 0.986 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000215/1.796, allocations: 46.56 kB / 0.986 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.725e-05/1.796, allocations: 0 / 0.986 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.345e-05/1.796, allocations: 30.67 kB / 0.9861 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 4.097e-06/1.796, allocations: 11.98 kB / 0.9861 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0005464/1.796, allocations: 113.3 kB / 0.9862 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.675e-05/1.797, allocations: 51.41 kB / 0.9862 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008767/1.797, allocations: 0.5484 MB / 0.9868 GB, free: 32 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/1.797, allocations: 25.7 kB / 0.9868 GB, free: 0 / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/1.798, allocations: 180 kB / 0.987 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.395e-05/1.798, allocations: 7.844 kB / 0.987 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-06/1.798, allocations: 4 kB / 0.987 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002661/1.798, allocations: 346.8 kB / 0.9873 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.373e-05/1.798, allocations: 15.98 kB / 0.9873 GB, free: 15.44 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.458e-05/1.798, allocations: 15.98 kB / 0.9873 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.561e-05/1.798, allocations: 19.98 kB / 0.9873 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/1.798, allocations: 0 / 0.9873 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001925/1.798, allocations: 97.25 kB / 0.9874 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/1.798, allocations: 5.406 kB / 0.9874 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/1.798, allocations: 0 / 0.9874 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/1.798, allocations: 0 / 0.9874 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/1.799, allocations: 11.98 kB / 0.9875 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/1.799, allocations: 0 / 0.9875 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.629e-05/1.799, allocations: 4 kB / 0.9875 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-06/1.799, allocations: 0 / 0.9875 GB, free: 15.29 MB / 0.7481 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.0002066/1.799, allocations: 191.8 kB / 0.9876 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.544e-05/1.799, allocations: 27.62 kB / 0.9877 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003056/1.799, allocations: 108.1 kB / 0.9878 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/1.799, allocations: 0 / 0.9878 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/1.799, allocations: 0 / 0.9878 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/1.799, allocations: 0 / 0.9878 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003693/1.8, allocations: 293.5 kB / 0.988 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/1.8, allocations: 4 kB / 0.9881 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.916e-05/1.8, allocations: 4 kB / 0.9881 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/1.8, allocations: 0 / 0.9881 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/1.8, allocations: 7.984 kB / 0.9881 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/1.8, allocations: 0 / 0.9881 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/1.8, allocations: 0 / 0.9881 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002557/1.8, allocations: 195.1 kB / 0.9883 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/1.8, allocations: 124.7 kB / 0.9884 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.695e-05/1.8, allocations: 3.938 kB / 0.9884 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.489e-05/1.8, allocations: 3.938 kB / 0.9884 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.114e-05/1.8, allocations: 7.984 kB / 0.9884 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/1.8, allocations: 0 / 0.9884 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0006028/1.801, allocations: 419.1 kB / 0.9888 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/1.801, allocations: 0 / 0.9888 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003029/1.801, allocations: 27.91 kB / 0.9888 GB, free: 13.8 MB / 0.7481 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.001752/1.803, allocations: 0.9845 MB / 0.9898 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002008/1.803, allocations: 39.92 kB / 0.9898 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.803, allocations: 0 / 0.9898 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 6.465e-05/1.803, allocations: 19.98 kB / 0.9898 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/1.804, allocations: 43.06 kB / 0.9899 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004069/1.808, allocations: 1.871 MB / 0.9917 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006237/1.809, allocations: 0.7989 MB / 0.9925 GB, free: 10.07 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001735/1.809, allocations: 42.92 kB / 0.9925 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/1.809, allocations: 91.39 kB / 0.9926 GB, free: 9.941 MB / 0.7481 GB Notification: Performance of SimCode: time 1.283e-06/1.809, allocations: 4 kB / 0.9926 GB, free: 9.938 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/1.832, allocations: 5.391 MB / 0.9979 GB, free: 4.77 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000514/1.833, allocations: 260.4 kB / 0.9981 GB, free: 4.41 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.092/4.925, allocations: 0 / 0.9981 GB, free: 4.41 MB / 0.7481 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) Environment - environmentSimulation: 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