Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.366/1.366, allocations: 252 MB / 267 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009887/0.0009887, allocations: 186.5 kB / 326.6 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.4 MB / 0.5777 GB, free: 20.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008871/0.000887, allocations: 91.8 kB / 0.6822 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003433/0.0003433, allocations: 8.688 kB / 0.7964 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2677, allocations: 106.3 MB / 0.9003 GB, free: 64.24 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001599/0.2694, allocations: 0.9854 MB / 0.9012 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.003441/0.2729, allocations: 3.054 MB / 0.9042 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.163e-05/0.2729, allocations: 0 / 0.9042 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.766e-05/0.273, allocations: 3.938 kB / 0.9042 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.965e-05/0.273, allocations: 11.97 kB / 0.9042 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.2734, allocations: 83.64 kB / 0.9043 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.437e-05/0.2735, allocations: 31.84 kB / 0.9044 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.299e-05/0.2735, allocations: 4 kB / 0.9044 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.193e-05/0.2736, allocations: 15.98 kB / 0.9044 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.14e-05/0.2737, allocations: 23.91 kB / 0.9044 GB, free: 60 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.2737, allocations: 0 / 0.9044 GB, free: 60 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.2739, allocations: 51.84 kB / 0.9044 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.513e-05/0.2739, allocations: 11.98 kB / 0.9045 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.232e-05/0.2739, allocations: 29.7 kB / 0.9045 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.2741, allocations: 35.95 kB / 0.9045 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.2741, allocations: 0 / 0.9045 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.944e-06/0.2741, allocations: 3.938 kB / 0.9045 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.2741, allocations: 0 / 0.9045 GB, free: 59.87 MB / 0.6042 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.0003275/0.2744, allocations: 339.6 kB / 0.9048 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.2745, allocations: 8.031 kB / 0.9049 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.405e-05/0.2745, allocations: 34.56 kB / 0.9049 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.884e-05/0.2746, allocations: 11.95 kB / 0.9049 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.422e-05/0.2747, allocations: 163 kB / 0.9051 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.2747, allocations: 4 kB / 0.9051 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.2748, allocations: 11.89 kB / 0.9051 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.2749, allocations: 53.67 kB / 0.9051 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2749, allocations: 0 / 0.9051 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.2749, allocations: 7.984 kB / 0.9051 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.2749, allocations: 3.953 kB / 0.9051 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.943e-05/0.275, allocations: 19.92 kB / 0.9052 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000142/0.2751, allocations: 169.6 kB / 0.9053 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 8.384e-05/0.2752, allocations: 58.55 kB / 0.9054 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.533e-05/0.2753, allocations: 12.86 kB / 0.9054 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000573/0.2758, allocations: 0.5946 MB / 0.906 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.888e-05/0.2759, allocations: 42.48 kB / 0.906 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=5): time 9.62e-07/0.2759, allocations: 0 / 0.906 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0004909/0.2764, allocations: 306.5 kB / 0.9063 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.2764, allocations: 51.41 kB / 0.9063 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.905e-05/0.2765, allocations: 97.86 kB / 0.9064 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.2765, allocations: 29.7 kB / 0.9065 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.034e-05/0.2765, allocations: 91.97 kB / 0.9066 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.2765, allocations: 23.72 kB / 0.9066 GB, free: 57.4 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.339e-06/0.2765, allocations: 4 kB / 0.9066 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.215e-05/0.2766, allocations: 314.8 kB / 0.9069 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.354e-05/0.2766, allocations: 12 kB / 0.9069 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.089e-05/0.2767, allocations: 53.14 kB / 0.9069 GB, free: 57 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.647e-05/0.2767, allocations: 27.88 kB / 0.907 GB, free: 56.97 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-06/0.2767, allocations: 0 / 0.907 GB, free: 56.97 MB / 0.6042 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001087/0.2768, allocations: 101.4 kB / 0.9071 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.2769, allocations: 4 kB / 0.9071 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2769, allocations: 4 kB / 0.9071 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.2769, allocations: 0 / 0.9071 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.89e-05/0.277, allocations: 20.11 kB / 0.9071 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.277, allocations: 8 kB / 0.9071 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.509e-05/0.277, allocations: 0 / 0.9071 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.277, allocations: 4 kB / 0.9071 GB, free: 56.82 MB / 0.6042 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 5.386e-05/0.2771, allocations: 121.7 kB / 0.9072 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.2771, allocations: 7.953 kB / 0.9072 GB, free: 56.69 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.946e-05/0.2771, allocations: 11.95 kB / 0.9072 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.2772, allocations: 0 / 0.9072 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2772, allocations: 288 / 0.9072 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.2772, allocations: 4 kB / 0.9072 GB, free: 56.66 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001921/0.2774, allocations: 177.7 kB / 0.9074 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.2774, allocations: 0 / 0.9074 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.954e-05/0.2775, allocations: 15.98 kB / 0.9074 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2775, allocations: 3.953 kB / 0.9074 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.2775, allocations: 0 / 0.9074 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2775, allocations: 0 / 0.9074 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2775, allocations: 4 kB / 0.9074 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001327/0.2776, allocations: 175.4 kB / 0.9076 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.237e-05/0.2777, allocations: 85.14 kB / 0.9077 GB, free: 56.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.2777, allocations: 11.95 kB / 0.9077 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.2778, allocations: 3.938 kB / 0.9077 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.682e-05/0.2778, allocations: 7.984 kB / 0.9077 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.2778, allocations: 448 / 0.9077 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.399e-05/0.2779, allocations: 83.28 kB / 0.9078 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2779, allocations: 0 / 0.9078 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002017/0.2781, allocations: 12 kB / 0.9078 GB, free: 56.01 MB / 0.6042 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.0002902/0.2784, allocations: 0.7045 MB / 0.9085 GB, free: 55.28 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 9.55e-05/0.2785, allocations: 47.95 kB / 0.9085 GB, free: 55.23 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2785, allocations: 0 / 0.9085 GB, free: 55.23 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 4.4e-05/0.2785, allocations: 19.92 kB / 0.9086 GB, free: 55.21 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/0.2788, allocations: 18.47 kB / 0.9086 GB, free: 55.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007673/0.2796, allocations: 0.6691 MB / 0.9092 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/0.2797, allocations: 0.6848 MB / 0.9099 GB, free: 53.75 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.24e-05/0.2798, allocations: 12.05 kB / 0.9099 GB, free: 53.74 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.296e-05/0.2798, allocations: 15.61 kB / 0.9099 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2798, allocations: 0 / 0.9099 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01128/0.2911, allocations: 1.423 MB / 0.9113 GB, free: 52.43 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.2913, allocations: 185.5 kB / 0.9115 GB, free: 52.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/1.964, allocations: 0 / 0.9115 GB, free: 52.2 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_maint_7_0_x_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1)