Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.conf.json 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/HelmholtzMedia master/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 HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01347/0.01347, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.09558/0.09558, allocations: 9.071 MB / 24.92 MB, free: 3.836 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.381/2.381, allocations: 205.4 MB / 232.7 MB, free: 7.707 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001416/0.001416, allocations: 102.8 kB / 282.6 MB, free: 5.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004245/0.0004249, allocations: 16 kB / 342.4 MB, free: 22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1719, allocations: 49.17 MB / 391.6 MB, free: 4.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.344/9.516, allocations: 2.77 GB / 3.153 GB, free: 72.27 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003902/9.516, allocations: 58.55 kB / 3.153 GB, free: 72.24 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6927/10.21, allocations: 107.9 MB / 3.258 GB, free: 91 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.376e-06/10.21, allocations: 3.969 kB / 3.258 GB, free: 91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/10.21, allocations: 1.031 kB / 3.258 GB, free: 91 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.005784/10.21, allocations: 0.9089 MB / 3.259 GB, free: 90.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.499e-05/10.21, allocations: 13.56 kB / 3.259 GB, free: 90.39 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.251e-05/10.21, allocations: 47.59 kB / 3.259 GB, free: 90.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003497/10.22, allocations: 44.33 kB / 3.259 GB, free: 90.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002638/10.22, allocations: 206.7 kB / 3.259 GB, free: 90.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/10.22, allocations: 10.78 kB / 3.259 GB, free: 90.14 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.857e-05/10.22, allocations: 17.12 kB / 3.259 GB, free: 90.13 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008207/10.22, allocations: 251.2 kB / 3.26 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/10.22, allocations: 3.797 kB / 3.26 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/10.22, allocations: 3.688 kB / 3.26 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/10.22, allocations: 3.875 kB / 3.26 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006992/10.22, allocations: 205.9 kB / 3.26 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009701/10.22, allocations: 0.6655 MB / 3.261 GB, free: 89.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008552/10.22, allocations: 234 kB / 3.261 GB, free: 89.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1242/10.34, allocations: 63.71 MB / 3.323 GB, free: 48.51 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.431e-05/10.34, allocations: 34.12 kB / 3.323 GB, free: 48.47 MB / 442.7 MB Notification: Performance of pre-optimization done (n=14): time 3.337e-06/10.34, allocations: 0 / 3.323 GB, free: 48.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=14): time 0.002002/10.35, allocations: 361.2 kB / 3.323 GB, free: 48.44 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/10.35, allocations: 84.7 kB / 3.323 GB, free: 48.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/10.35, allocations: 119.4 kB / 3.324 GB, free: 48.24 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.799e-05/10.35, allocations: 29.7 kB / 3.324 GB, free: 48.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.258e-05/10.35, allocations: 102.9 kB / 3.324 GB, free: 48.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.097e-05/10.35, allocations: 42.39 kB / 3.324 GB, free: 48.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.703e-05/10.35, allocations: 3.938 kB / 3.324 GB, free: 48.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/10.35, allocations: 322.3 kB / 3.324 GB, free: 47.78 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/10.35, allocations: 49.83 kB / 3.324 GB, free: 47.78 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/10.35, allocations: 86.78 kB / 3.324 GB, free: 47.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/10.35, allocations: 69.19 kB / 3.324 GB, free: 47.74 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/10.35, allocations: 0 / 3.324 GB, free: 47.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000502/10.35, allocations: 213 kB / 3.324 GB, free: 47.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/10.35, allocations: 5.062 kB / 3.324 GB, free: 47.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/10.35, allocations: 3.75 kB / 3.324 GB, free: 47.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.739e-05/10.35, allocations: 3.344 kB / 3.324 GB, free: 47.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/10.35, allocations: 49.2 kB / 3.325 GB, free: 47.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/10.35, allocations: 2.062 kB / 3.325 GB, free: 47.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/10.35, allocations: 22.44 kB / 3.325 GB, free: 47.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.132e-05/10.35, allocations: 14.72 kB / 3.325 GB, free: 47.69 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state_h.phase,state_p.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.000175/10.35, allocations: 125.5 kB / 3.325 GB, free: 47.58 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.885e-05/10.35, allocations: 15.52 kB / 3.325 GB, free: 47.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002543/10.35, allocations: 2.065 MB / 3.327 GB, free: 47.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.826e-05/10.35, allocations: 7.734 kB / 3.327 GB, free: 47.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/10.35, allocations: 0 / 3.327 GB, free: 47.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/10.35, allocations: 3.281 kB / 3.327 GB, free: 47.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/10.35, allocations: 1.024 MB / 3.328 GB, free: 47.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/10.35, allocations: 6.281 kB / 3.328 GB, free: 47.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/10.35, allocations: 34.5 kB / 3.328 GB, free: 47.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/10.35, allocations: 3.062 kB / 3.328 GB, free: 47.07 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/10.35, allocations: 11.67 kB / 3.328 GB, free: 47.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/10.35, allocations: 7.797 kB / 3.328 GB, free: 47.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/10.35, allocations: 0 / 3.328 GB, free: 47.07 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008668/10.35, allocations: 0.6393 MB / 3.328 GB, free: 46.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/10.35, allocations: 107.9 kB / 3.328 GB, free: 46.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/10.35, allocations: 0 / 3.328 GB, free: 46.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/10.35, allocations: 16.81 kB / 3.329 GB, free: 46.69 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/10.35, allocations: 7.547 kB / 3.329 GB, free: 46.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/10.35, allocations: 3.781 kB / 3.329 GB, free: 46.69 MB / 442.7 MB Notification: Performance of sorting global known variables: time 7.784e-05/10.35, allocations: 105.2 kB / 3.329 GB, free: 46.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.072e-06/10.35, allocations: 0 / 3.329 GB, free: 46.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007275/10.36, allocations: 0.9084 MB / 3.33 GB, free: 46.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_p_int,d_h_int) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.01399/10.38, allocations: 2.351 MB / 3.332 GB, free: 45.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007535/10.38, allocations: 214.9 kB / 3.332 GB, free: 45.42 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.595e-06/10.38, allocations: 0 / 3.332 GB, free: 45.42 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003383/10.38, allocations: 161.4 kB / 3.332 GB, free: 45.35 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007624/10.38, allocations: 76.17 kB / 3.332 GB, free: 45.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007751/10.38, allocations: 2.023 MB / 3.334 GB, free: 43.94 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/10.39, allocations: 0.7469 MB / 3.335 GB, free: 43.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006164/10.39, allocations: 368.2 kB / 3.335 GB, free: 43.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/10.39, allocations: 70.27 kB / 3.335 GB, free: 43.18 MB / 442.7 MB Notification: Performance of SimCode: time 2.214e-06/10.39, allocations: 1.125 kB / 3.335 GB, free: 43.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07814/10.46, allocations: 27.12 MB / 3.362 GB, free: 28.36 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000214/10.46, allocations: 188.7 kB / 3.362 GB, free: 28.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.302/13.77, allocations: 4 kB / 3.362 GB, free: 28.11 MB / 442.7 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)