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.001088/0.001088, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04744/0.04744, allocations: 8.685 MB / 16.75 MB, free: 2.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.3 MB / 224.1 MB, free: 10.05 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.0008649/0.0008648, allocations: 77.23 kB / 273.7 MB, free: 8.406 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.086e-05/3.038e-05, allocations: 0 / 329.2 MB, free: 30.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 49.18 MB / 378.4 MB, free: 13.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.423/8.533, allocations: 2.77 GB / 3.139 GB, free: 103.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004078/8.533, allocations: 68.47 kB / 3.139 GB, free: 103.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2767/8.81, allocations: 105.8 MB / 3.243 GB, free: 54.61 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.485e-06/8.81, allocations: 0 / 3.243 GB, free: 54.61 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.047e-05/8.81, allocations: 0 / 3.243 GB, free: 54.61 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.005494/8.816, allocations: 0.8918 MB / 3.243 GB, free: 53.67 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.928e-05/8.816, allocations: 8.031 kB / 3.243 GB, free: 53.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003534/8.816, allocations: 43.86 kB / 3.243 GB, free: 53.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002503/8.816, allocations: 210.7 kB / 3.244 GB, free: 53.38 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/8.816, allocations: 4 kB / 3.244 GB, free: 53.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.923e-05/8.816, allocations: 8 kB / 3.244 GB, free: 53.37 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001698/8.817, allocations: 68.3 kB / 3.244 GB, free: 53.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/8.817, allocations: 104.5 kB / 3.244 GB, free: 53.19 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/8.817, allocations: 0 / 3.244 GB, free: 53.19 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/8.817, allocations: 0 / 3.244 GB, free: 53.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/8.817, allocations: 4 kB / 3.244 GB, free: 53.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006984/8.818, allocations: 0.6393 MB / 3.244 GB, free: 52.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/8.818, allocations: 117.2 kB / 3.245 GB, free: 52.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.828e-05/8.818, allocations: 53.75 kB / 3.245 GB, free: 52.27 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4967/9.315, allocations: 63.93 MB / 3.307 GB, free: 84.22 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.486e-05/9.315, allocations: 35.39 kB / 3.307 GB, free: 84.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=14): time 5.089e-06/9.315, allocations: 0 / 3.307 GB, free: 84.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=14): time 0.001845/9.317, allocations: 251.6 kB / 3.307 GB, free: 84.15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/9.317, allocations: 78.08 kB / 3.307 GB, free: 84.06 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/9.317, allocations: 109.9 kB / 3.308 GB, free: 83.97 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.668e-05/9.317, allocations: 30.55 kB / 3.308 GB, free: 83.94 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.442e-05/9.317, allocations: 95.08 kB / 3.308 GB, free: 83.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.389e-05/9.317, allocations: 53.14 kB / 3.308 GB, free: 83.83 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.867e-05/9.317, allocations: 0 / 3.308 GB, free: 83.83 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/9.317, allocations: 319.6 kB / 3.308 GB, free: 83.52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/9.317, allocations: 50.58 kB / 3.308 GB, free: 83.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/9.318, allocations: 84.44 kB / 3.308 GB, free: 83.49 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007126/9.318, allocations: 84.47 kB / 3.308 GB, free: 83.49 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/9.318, allocations: 1.406 kB / 3.308 GB, free: 83.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0009742/9.319, allocations: 223.1 kB / 3.308 GB, free: 83.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/9.319, allocations: 7.219 kB / 3.308 GB, free: 83.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/9.319, allocations: 1.406 kB / 3.308 GB, free: 83.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.364e-05/9.32, allocations: 2.828 kB / 3.308 GB, free: 83.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/9.32, allocations: 64.48 kB / 3.309 GB, free: 83.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/9.32, allocations: 2.688 kB / 3.309 GB, free: 83.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/9.32, allocations: 11.52 kB / 3.309 GB, free: 83.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.488e-05/9.32, allocations: 16.88 kB / 3.309 GB, free: 83.45 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 () * 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.0001326/9.32, allocations: 110.2 kB / 3.309 GB, free: 83.34 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009201/9.321, allocations: 209.2 kB / 3.309 GB, free: 83.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.175e-05/9.321, allocations: 9.125 kB / 3.309 GB, free: 83.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003277/9.325, allocations: 2.126 MB / 3.311 GB, free: 83.22 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/9.325, allocations: 7.062 kB / 3.311 GB, free: 83.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/9.325, allocations: 2.125 kB / 3.311 GB, free: 83.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/9.325, allocations: 0 / 3.311 GB, free: 83.22 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/9.326, allocations: 0.9876 MB / 3.312 GB, free: 82.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/9.326, allocations: 0 / 3.312 GB, free: 82.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002684/9.326, allocations: 38.75 kB / 3.312 GB, free: 82.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.135e-05/9.326, allocations: 5.719 kB / 3.312 GB, free: 82.86 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.814e-05/9.326, allocations: 1.156 kB / 3.312 GB, free: 82.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/9.326, allocations: 1.094 kB / 3.312 GB, free: 82.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.097e-05/9.326, allocations: 5.203 kB / 3.312 GB, free: 82.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/9.327, allocations: 0.6283 MB / 3.313 GB, free: 82.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/9.328, allocations: 104.7 kB / 3.313 GB, free: 82.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/9.328, allocations: 1.094 kB / 3.313 GB, free: 82.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/9.328, allocations: 10.83 kB / 3.313 GB, free: 82.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/9.328, allocations: 14.72 kB / 3.313 GB, free: 82.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/9.328, allocations: 4.094 kB / 3.313 GB, free: 82.49 MB / 442.7 MB Notification: Performance of sorting global known variables: time 8.928e-05/9.328, allocations: 98.25 kB / 3.313 GB, free: 82.42 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.6e-07/9.328, allocations: 0 / 3.313 GB, free: 82.42 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007516/9.336, allocations: 0.9013 MB / 3.314 GB, free: 82.42 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 () * 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.01252/9.348, allocations: 2.357 MB / 3.316 GB, free: 81.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005282/9.349, allocations: 202.3 kB / 3.316 GB, free: 81.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/9.349, allocations: 3.562 kB / 3.316 GB, free: 81.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002495/9.349, allocations: 152.9 kB / 3.316 GB, free: 81.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006713/9.35, allocations: 55.72 kB / 3.316 GB, free: 81.55 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00524/9.355, allocations: 0.8332 MB / 3.317 GB, free: 81.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/9.355, allocations: 0.7393 MB / 3.318 GB, free: 80.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005437/9.356, allocations: 371.5 kB / 3.318 GB, free: 80.61 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/9.356, allocations: 68.81 kB / 3.318 GB, free: 80.61 MB / 442.7 MB Notification: Performance of SimCode: time 5.41e-07/9.356, allocations: 0 / 3.318 GB, free: 80.61 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0822/9.438, allocations: 25.47 MB / 3.343 GB, free: 79.76 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/9.438, allocations: 147.1 kB / 3.343 GB, free: 79.57 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.987/12.43, allocations: 3.094 kB / 3.343 GB, free: 79.57 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)