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.001021/0.001021, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04476/0.04476, allocations: 8.665 MB / 21.93 MB, free: 3.078 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.451/1.451, allocations: 205.2 MB / 229.3 MB, free: 14.78 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008461/0.0008461, allocations: 92.61 kB / 279 MB, free: 15.82 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.907e-05/2.909e-05, allocations: 0 / 336.1 MB, free: 6.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3473, allocations: 49.17 MB / 385.3 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.086/8.434, allocations: 2.77 GB / 3.147 GB, free: 32.95 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/8.434, allocations: 67.95 kB / 3.147 GB, free: 32.88 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6468/9.081, allocations: 107.7 MB / 3.252 GB, free: 101.2 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.598e-06/9.081, allocations: 0 / 3.252 GB, free: 101.2 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.643e-05/9.081, allocations: 4 kB / 3.252 GB, free: 101.2 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.006101/9.087, allocations: 0.8961 MB / 3.253 GB, free: 100.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.419e-05/9.087, allocations: 8.031 kB / 3.253 GB, free: 100.3 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.347e-05/9.087, allocations: 46.17 kB / 3.253 GB, free: 100.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003782/9.088, allocations: 47.11 kB / 3.253 GB, free: 100.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/9.088, allocations: 202 kB / 3.253 GB, free: 99.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/9.088, allocations: 8.188 kB / 3.253 GB, free: 99.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.18e-05/9.088, allocations: 8 kB / 3.253 GB, free: 99.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008623/9.089, allocations: 270 kB / 3.253 GB, free: 99.72 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/9.089, allocations: 0 / 3.253 GB, free: 99.72 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/9.089, allocations: 4 kB / 3.253 GB, free: 99.72 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/9.089, allocations: 14.38 kB / 3.253 GB, free: 99.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006562/9.09, allocations: 215.1 kB / 3.254 GB, free: 99.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00085/9.091, allocations: 0.666 MB / 3.254 GB, free: 98.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007802/9.091, allocations: 250.5 kB / 3.254 GB, free: 98.6 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.347e-05/9.092, allocations: 53.86 kB / 3.254 GB, free: 98.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1173/9.209, allocations: 63.95 MB / 3.317 GB, free: 29.33 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.374e-05/9.209, allocations: 30.56 kB / 3.317 GB, free: 29.29 MB / 442.7 MB Notification: Performance of pre-optimization done (n=14): time 2.164e-06/9.209, allocations: 0 / 3.317 GB, free: 29.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=14): time 0.001566/9.211, allocations: 365.2 kB / 3.317 GB, free: 28.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/9.211, allocations: 81.11 kB / 3.317 GB, free: 28.83 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/9.211, allocations: 122.3 kB / 3.318 GB, free: 28.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/9.211, allocations: 25.7 kB / 3.318 GB, free: 28.67 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.719e-05/9.211, allocations: 95.98 kB / 3.318 GB, free: 28.57 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.743e-05/9.211, allocations: 47.3 kB / 3.318 GB, free: 28.53 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.575e-05/9.211, allocations: 4 kB / 3.318 GB, free: 28.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/9.211, allocations: 322.8 kB / 3.318 GB, free: 28.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.856e-05/9.211, allocations: 55.98 kB / 3.318 GB, free: 28.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/9.211, allocations: 87.34 kB / 3.318 GB, free: 28.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/9.211, allocations: 56.12 kB / 3.318 GB, free: 27.99 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/9.211, allocations: 0 / 3.318 GB, free: 27.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003565/9.212, allocations: 221.4 kB / 3.318 GB, free: 27.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/9.212, allocations: 7.938 kB / 3.318 GB, free: 27.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/9.212, allocations: 8.062 kB / 3.318 GB, free: 27.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/9.212, allocations: 0 / 3.318 GB, free: 27.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/9.212, allocations: 55.89 kB / 3.318 GB, free: 27.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/9.212, allocations: 0 / 3.318 GB, free: 27.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/9.212, allocations: 11.91 kB / 3.318 GB, free: 27.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.423e-05/9.212, allocations: 19.98 kB / 3.318 GB, free: 27.67 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.0001111/9.212, allocations: 109.4 kB / 3.319 GB, free: 27.55 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.579e-05/9.213, allocations: 15.86 kB / 3.319 GB, free: 27.54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001741/9.214, allocations: 2.133 MB / 3.321 GB, free: 25.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/9.214, allocations: 3.984 kB / 3.321 GB, free: 25.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/9.214, allocations: 4 kB / 3.321 GB, free: 25.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/9.214, allocations: 0 / 3.321 GB, free: 25.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007996/9.215, allocations: 1.031 MB / 3.322 GB, free: 24.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/9.215, allocations: 0 / 3.322 GB, free: 24.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/9.215, allocations: 35.95 kB / 3.322 GB, free: 24.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/9.215, allocations: 3.953 kB / 3.322 GB, free: 24.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/9.215, allocations: 4 kB / 3.322 GB, free: 24.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/9.215, allocations: 4 kB / 3.322 GB, free: 24.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/9.215, allocations: 3.938 kB / 3.322 GB, free: 24.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005614/9.216, allocations: 0.6432 MB / 3.322 GB, free: 23.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.606e-05/9.216, allocations: 104.7 kB / 3.322 GB, free: 23.42 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/9.216, allocations: 7.984 kB / 3.322 GB, free: 23.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/9.216, allocations: 11.98 kB / 3.322 GB, free: 23.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.858e-05/9.216, allocations: 4 kB / 3.322 GB, free: 23.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/9.216, allocations: 7.984 kB / 3.322 GB, free: 23.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.418e-05/9.216, allocations: 96.78 kB / 3.323 GB, free: 23.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.91e-07/9.216, allocations: 0 / 3.323 GB, free: 23.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005049/9.221, allocations: 0.9211 MB / 3.323 GB, free: 22.38 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.006205/9.228, allocations: 2.339 MB / 3.326 GB, free: 20.01 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0003831/9.228, allocations: 211.6 kB / 3.326 GB, free: 19.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/9.228, allocations: 0 / 3.326 GB, free: 19.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001635/9.228, allocations: 155.9 kB / 3.326 GB, free: 19.65 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006005/9.229, allocations: 67.98 kB / 3.326 GB, free: 19.58 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/9.231, allocations: 0.8351 MB / 3.327 GB, free: 18.71 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/9.231, allocations: 0.7409 MB / 3.328 GB, free: 17.95 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003964/9.231, allocations: 368.4 kB / 3.328 GB, free: 17.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/9.232, allocations: 75.41 kB / 3.328 GB, free: 17.51 MB / 442.7 MB Notification: Performance of SimCode: time 4.41e-07/9.232, allocations: 3.938 kB / 3.328 GB, free: 17.51 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4142/9.646, allocations: 28.32 MB / 3.356 GB, free: 92.47 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/9.646, allocations: 158.8 kB / 3.356 GB, free: 92.25 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.003/12.65, allocations: 0 / 3.356 GB, free: 92.25 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)