Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.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.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck",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.271/2.271, allocations: 390.3 MB / 402.8 MB, free: 6.703 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.001201/0.001201, allocations: 187.7 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 221.3 MB / 0.7915 GB, free: 5.461 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.0008767/0.0008767, allocations: 91.91 kB / 0.9317 GB, free: 5.781 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.097e-05/4.109e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2612, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.065/1.326, allocations: 379.2 MB / 1.589 GB, free: 6.82 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/1.326, allocations: 70.81 kB / 1.589 GB, free: 6.785 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 0.03348/1.36, allocations: 13.33 MB / 1.602 GB, free: 9.859 MB / 1.057 GB Notification: Performance of FrontEnd: time 2.545e-06/1.36, allocations: 7.938 kB / 1.602 GB, free: 9.852 MB / 1.057 GB Notification: Performance of Transformations before backend: time 6.252e-06/1.36, allocations: 0 / 1.602 GB, free: 9.852 MB / 1.057 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004201/1.36, allocations: 338.4 kB / 1.603 GB, free: 9.477 MB / 1.057 GB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/1.36, allocations: 12.03 kB / 1.603 GB, free: 9.465 MB / 1.057 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.433e-05/1.36, allocations: 30.56 kB / 1.603 GB, free: 9.426 MB / 1.057 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/1.361, allocations: 12.72 kB / 1.603 GB, free: 9.414 MB / 1.057 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/1.361, allocations: 167 kB / 1.603 GB, free: 9.211 MB / 1.057 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/1.361, allocations: 8 kB / 1.603 GB, free: 9.203 MB / 1.057 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.938e-05/1.361, allocations: 7.906 kB / 1.603 GB, free: 9.195 MB / 1.057 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001627/1.361, allocations: 53.67 kB / 1.603 GB, free: 9.137 MB / 1.057 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/1.361, allocations: 0 / 1.603 GB, free: 9.137 MB / 1.057 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/1.361, allocations: 4 kB / 1.603 GB, free: 9.133 MB / 1.057 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/1.361, allocations: 0 / 1.603 GB, free: 9.133 MB / 1.057 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.413e-05/1.361, allocations: 19.94 kB / 1.603 GB, free: 9.113 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002251/1.361, allocations: 165.7 kB / 1.603 GB, free: 8.902 MB / 1.057 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/1.361, allocations: 58.56 kB / 1.603 GB, free: 8.836 MB / 1.057 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.858e-05/1.361, allocations: 12.86 kB / 1.603 GB, free: 8.82 MB / 1.057 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008632/1.362, allocations: 0.6026 MB / 1.604 GB, free: 8.109 MB / 1.057 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/1.362, allocations: 46.5 kB / 1.604 GB, free: 8.055 MB / 1.057 GB Notification: Performance of pre-optimization done (n=5): time 1.323e-06/1.362, allocations: 0 / 1.604 GB, free: 8.055 MB / 1.057 GB Notification: Performance of matching and sorting (n=7): time 0.0006192/1.363, allocations: 290.4 kB / 1.604 GB, free: 7.719 MB / 1.057 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/1.363, allocations: 59.33 kB / 1.604 GB, free: 7.648 MB / 1.057 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/1.363, allocations: 96.98 kB / 1.604 GB, free: 7.547 MB / 1.057 GB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/1.363, allocations: 25.7 kB / 1.604 GB, free: 7.516 MB / 1.057 GB Notification: Performance of collectInitialEqns (initialization): time 5.486e-05/1.363, allocations: 96.03 kB / 1.604 GB, free: 7.418 MB / 1.057 GB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/1.363, allocations: 27.59 kB / 1.604 GB, free: 7.391 MB / 1.057 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/1.363, allocations: 4 kB / 1.604 GB, free: 7.387 MB / 1.057 GB Notification: Performance of setup shared object (initialization): time 0.0001139/1.363, allocations: 314.8 kB / 1.605 GB, free: 7.07 MB / 1.057 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.208e-05/1.363, allocations: 12 kB / 1.605 GB, free: 7.059 MB / 1.057 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.852e-05/1.364, allocations: 49.16 kB / 1.605 GB, free: 6.992 MB / 1.057 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.423e-05/1.364, allocations: 23.98 kB / 1.605 GB, free: 6.969 MB / 1.057 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/1.364, allocations: 0 / 1.605 GB, free: 6.969 MB / 1.057 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001415/1.364, allocations: 93.45 kB / 1.605 GB, free: 6.871 MB / 1.057 GB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/1.364, allocations: 9.359 kB / 1.605 GB, free: 6.863 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/1.364, allocations: 0 / 1.605 GB, free: 6.863 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/1.364, allocations: 4 kB / 1.605 GB, free: 6.859 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.981e-05/1.364, allocations: 28.06 kB / 1.605 GB, free: 6.832 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/1.364, allocations: 11.92 kB / 1.605 GB, free: 6.82 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.781e-05/1.364, allocations: 0 / 1.605 GB, free: 6.82 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/1.364, allocations: 4 kB / 1.605 GB, free: 6.816 MB / 1.057 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 7.643e-05/1.364, allocations: 112.9 kB / 1.605 GB, free: 6.699 MB / 1.057 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.646e-05/1.364, allocations: 0 / 1.605 GB, free: 6.699 MB / 1.057 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.314e-05/1.364, allocations: 16.05 kB / 1.605 GB, free: 6.684 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/1.364, allocations: 0 / 1.605 GB, free: 6.684 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/1.364, allocations: 0 / 1.605 GB, free: 6.684 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/1.364, allocations: 4 kB / 1.605 GB, free: 6.68 MB / 1.057 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002475/1.364, allocations: 173.7 kB / 1.605 GB, free: 6.461 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/1.364, allocations: 0 / 1.605 GB, free: 6.461 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.767e-05/1.365, allocations: 16.23 kB / 1.605 GB, free: 6.445 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/1.365, allocations: 4 kB / 1.605 GB, free: 6.441 MB / 1.057 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/1.365, allocations: 4 kB / 1.605 GB, free: 6.438 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/1.365, allocations: 3.953 kB / 1.605 GB, free: 6.434 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.365, allocations: 0 / 1.605 GB, free: 6.434 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002073/1.365, allocations: 179.4 kB / 1.605 GB, free: 6.242 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 5.228e-05/1.365, allocations: 81.14 kB / 1.605 GB, free: 6.145 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/1.365, allocations: 7.938 kB / 1.605 GB, free: 6.137 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.408e-05/1.365, allocations: 0 / 1.605 GB, free: 6.137 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.401e-05/1.365, allocations: 11.94 kB / 1.605 GB, free: 6.125 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/1.365, allocations: 4 kB / 1.605 GB, free: 6.121 MB / 1.057 GB Notification: Performance of sorting global known variables: time 3.608e-05/1.365, allocations: 79.66 kB / 1.605 GB, free: 6.043 MB / 1.057 GB Notification: Performance of sort global known variables: time 6.81e-07/1.365, allocations: 0 / 1.605 GB, free: 6.043 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.0002411/1.365, allocations: 16 kB / 1.605 GB, free: 6.027 MB / 1.057 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0005391/1.366, allocations: 0.7253 MB / 1.606 GB, free: 5.277 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.0001243/1.366, allocations: 48.03 kB / 1.606 GB, free: 5.23 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/1.366, allocations: 0 / 1.606 GB, free: 5.23 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 2.465e-05/1.366, allocations: 12 kB / 1.606 GB, free: 5.219 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001752/1.366, allocations: 12.5 kB / 1.606 GB, free: 5.207 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007411/1.367, allocations: 311.2 kB / 1.607 GB, free: 4.867 MB / 1.057 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/1.367, allocations: 0.6809 MB / 1.607 GB, free: 4.16 MB / 1.057 GB Notification: Performance of simCode: alias equations: time 6.074e-05/1.367, allocations: 19.7 kB / 1.607 GB, free: 4.141 MB / 1.057 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.828e-05/1.367, allocations: 15.44 kB / 1.607 GB, free: 4.125 MB / 1.057 GB Notification: Performance of SimCode: time 5.61e-07/1.367, allocations: 0 / 1.607 GB, free: 4.125 MB / 1.057 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0138/1.381, allocations: 1.822 MB / 1.609 GB, free: 2.422 MB / 1.057 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/1.381, allocations: 156.2 kB / 1.609 GB, free: 2.195 MB / 1.057 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.621/3.002, allocations: 0 / 1.609 GB, free: 2.195 MB / 1.057 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat does not exist to compare? outputFormat=mat