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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001678/0.001678, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.72/2.72, allocations: 409.4 MB / 0.684 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003586, allocations: 8 kB / 0.8378 GB, free: 6.5 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7794/0.7797, allocations: 146.8 MB / 0.9811 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001426/0.7812, allocations: 0.9801 MB / 0.9821 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003963/0.7852, allocations: 3.046 MB / 0.9851 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.675e-05/0.7853, allocations: 0 / 0.9851 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.659e-05/0.7853, allocations: 4 kB / 0.9851 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.603e-05/0.7854, allocations: 7.922 kB / 0.9851 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000473/0.7858, allocations: 91.55 kB / 0.9852 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.738e-05/0.7859, allocations: 31.86 kB / 0.9852 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.094e-05/0.786, allocations: 4 kB / 0.9852 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.7861, allocations: 15.98 kB / 0.9852 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.668e-05/0.7862, allocations: 19.91 kB / 0.9852 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.7862, allocations: 0 / 0.9852 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002115/0.7865, allocations: 55.84 kB / 0.9853 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.765e-05/0.7865, allocations: 7.984 kB / 0.9853 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.796e-05/0.7865, allocations: 33.64 kB / 0.9853 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.7867, allocations: 38.2 kB / 0.9853 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.383e-06/0.7867, allocations: 0 / 0.9853 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.354e-06/0.7867, allocations: 0 / 0.9853 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.7867, allocations: 0 / 0.9853 GB, free: 1.891 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004833/0.7872, allocations: 335.4 kB / 0.9857 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.7873, allocations: 8.031 kB / 0.9857 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.823e-05/0.7873, allocations: 42.5 kB / 0.9857 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.7875, allocations: 7.984 kB / 0.9857 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.7876, allocations: 159.1 kB / 0.9859 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.7877, allocations: 8 kB / 0.9859 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.205e-05/0.7877, allocations: 11.86 kB / 0.9859 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.7879, allocations: 53.61 kB / 0.9859 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.7879, allocations: 0 / 0.9859 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.7879, allocations: 8 kB / 0.986 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.7879, allocations: 0 / 0.986 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.294e-05/0.788, allocations: 19.97 kB / 0.986 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002055/0.7882, allocations: 165.6 kB / 0.9861 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 9.31e-05/0.7883, allocations: 54.56 kB / 0.9862 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.79e-05/0.7884, allocations: 20.83 kB / 0.9862 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009521/0.7893, allocations: 0.5907 MB / 0.9868 GB, free: 156 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.7894, allocations: 34.56 kB / 0.9868 GB, free: 112 kB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.7894, allocations: 3.938 kB / 0.9868 GB, free: 108 kB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0006037/0.79, allocations: 310.4 kB / 0.9871 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.79, allocations: 51.41 kB / 0.9872 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.78e-05/0.7901, allocations: 97.84 kB / 0.9873 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.7901, allocations: 33.7 kB / 0.9873 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 3.941e-05/0.7902, allocations: 84.05 kB / 0.9874 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.7902, allocations: 27.64 kB / 0.9874 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-06/0.7902, allocations: 0 / 0.9874 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.7904, allocations: 322.8 kB / 0.9877 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.203e-05/0.7904, allocations: 15.98 kB / 0.9877 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.953e-05/0.7904, allocations: 45.16 kB / 0.9878 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.588e-05/0.7905, allocations: 31.92 kB / 0.9878 GB, free: 15 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.7905, allocations: 0 / 0.9878 GB, free: 15 MB / 0.7481 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000133/0.7906, allocations: 93.45 kB / 0.9879 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.7907, allocations: 4 kB / 0.9879 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.7907, allocations: 4 kB / 0.9879 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.7907, allocations: 0 / 0.9879 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.178e-05/0.7908, allocations: 16 kB / 0.9879 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.7908, allocations: 7.984 kB / 0.9879 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.627e-05/0.7908, allocations: 4 kB / 0.9879 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.301e-06/0.7908, allocations: 8.125 kB / 0.9879 GB, free: 14.86 MB / 0.7481 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 () * Number of clocked 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 0.000181/0.791, allocations: 121.7 kB / 0.988 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.607e-05/0.7911, allocations: 4 kB / 0.988 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.7911, allocations: 7.969 kB / 0.988 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.7911, allocations: 0 / 0.988 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.7911, allocations: 4 kB / 0.9881 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.7911, allocations: 0 / 0.9881 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000232/0.7914, allocations: 177.6 kB / 0.9882 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.7914, allocations: 0 / 0.9882 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.457e-05/0.7915, allocations: 19.98 kB / 0.9882 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.7915, allocations: 3.938 kB / 0.9882 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.7915, allocations: 3.938 kB / 0.9882 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.7915, allocations: 0 / 0.9882 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.7915, allocations: 4 kB / 0.9883 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002139/0.7917, allocations: 183.4 kB / 0.9884 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.587e-05/0.7918, allocations: 77.11 kB / 0.9885 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.7918, allocations: 4 kB / 0.9885 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.836e-05/0.7919, allocations: 12.03 kB / 0.9885 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.819e-05/0.7919, allocations: 4.375 kB / 0.9885 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.792, allocations: 448 / 0.9885 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 4.052e-05/0.792, allocations: 83.27 kB / 0.9886 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.792, allocations: 0 / 0.9886 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002387/0.7922, allocations: 16 kB / 0.9886 GB, free: 14.05 MB / 0.7481 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 () * Number of clocked 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.0005416/0.7928, allocations: 0.7162 MB / 0.9893 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001204/0.7929, allocations: 43.91 kB / 0.9894 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.7929, allocations: 0 / 0.9894 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.68e-05/0.793, allocations: 16 kB / 0.9894 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.7933, allocations: 5.25 kB / 0.9894 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.7944, allocations: 0.6767 MB / 0.99 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.7948, allocations: 0.6864 MB / 0.9907 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.608e-05/0.7948, allocations: 7.984 kB / 0.9907 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.997e-05/0.7949, allocations: 15.5 kB / 0.9907 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of SimCode: time 3.01e-07/0.7949, allocations: 4 kB / 0.9907 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01154/0.8064, allocations: 1.418 MB / 0.9921 GB, free: 10.48 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/0.8066, allocations: 180.4 kB / 0.9923 GB, free: 10.24 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.593, allocations: 0 / 0.9923 GB, free: 10.24 MB / 0.7481 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) Environment - environmentSimulation: 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