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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00241/0.00241, allocations: 180.8 kB / 7.459 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04343/0.04343, allocations: 8.663 MB / 16.54 MB, free: 184 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.194/1.194, allocations: 205.2 MB / 223.8 MB, free: 4.102 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.000941/0.000941, allocations: 97.14 kB / 273.4 MB, free: 2.812 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1115/0.1125, allocations: 55.31 MB / 328.7 MB, free: 11.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.354, allocations: 49.17 MB / 377.8 MB, free: 41.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.319/5.673, allocations: 2.77 GB / 3.139 GB, free: 83.41 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/5.673, allocations: 67.83 kB / 3.139 GB, free: 83.35 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.4625/6.136, allocations: 105.5 MB / 3.242 GB, free: 92.26 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/6.136, allocations: 11.84 kB / 3.242 GB, free: 92.26 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004714/6.136, allocations: 46.59 kB / 3.242 GB, free: 92.25 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/6.136, allocations: 205.3 kB / 3.242 GB, free: 92.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/6.136, allocations: 3.969 kB / 3.242 GB, free: 92.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/6.137, allocations: 9.094 kB / 3.242 GB, free: 92.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001461/6.137, allocations: 61.78 kB / 3.242 GB, free: 92.05 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/6.137, allocations: 102.5 kB / 3.242 GB, free: 92 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/6.137, allocations: 11.25 kB / 3.242 GB, free: 92 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/6.137, allocations: 0 / 3.242 GB, free: 92 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-06/6.137, allocations: 0 / 3.242 GB, free: 92 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006734/6.138, allocations: 0.6317 MB / 3.243 GB, free: 91.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/6.138, allocations: 128.9 kB / 3.243 GB, free: 91.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.771e-05/6.138, allocations: 44.88 kB / 3.243 GB, free: 91.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1182/6.256, allocations: 64.01 MB / 3.305 GB, free: 50.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/6.256, allocations: 37.22 kB / 3.305 GB, free: 50.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=14): time 2.504e-06/6.256, allocations: 3.844 kB / 3.305 GB, free: 50.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008682/6.257, allocations: 195 kB / 3.306 GB, free: 50.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.814e-05/6.257, allocations: 82.42 kB / 3.306 GB, free: 50.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/6.257, allocations: 117.1 kB / 3.306 GB, free: 50.35 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/6.257, allocations: 29.7 kB / 3.306 GB, free: 50.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.014e-05/6.257, allocations: 95.48 kB / 3.306 GB, free: 50.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.06e-05/6.257, allocations: 53.33 kB / 3.306 GB, free: 50.19 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/6.257, allocations: 0 / 3.306 GB, free: 50.19 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.458e-05/6.257, allocations: 314.3 kB / 3.306 GB, free: 49.88 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.322e-05/6.257, allocations: 30.97 kB / 3.306 GB, free: 49.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.834e-05/6.258, allocations: 56.16 kB / 3.306 GB, free: 49.85 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/6.258, allocations: 42.48 kB / 3.306 GB, free: 49.84 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/6.258, allocations: 0 / 3.306 GB, free: 49.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0006362/6.258, allocations: 217.2 kB / 3.307 GB, free: 49.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/6.258, allocations: 5.312 kB / 3.307 GB, free: 49.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/6.258, allocations: 4.375 kB / 3.307 GB, free: 49.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/6.258, allocations: 1.812 kB / 3.307 GB, free: 49.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/6.259, allocations: 29.45 kB / 3.307 GB, free: 49.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/6.259, allocations: 7.672 kB / 3.307 GB, free: 49.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.133e-05/6.259, allocations: 11.34 kB / 3.307 GB, free: 49.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/6.259, allocations: 6.844 kB / 3.307 GB, free: 49.8 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 5.911e-05/6.259, allocations: 107.9 kB / 3.307 GB, free: 49.69 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003351/6.259, allocations: 97.44 kB / 3.307 GB, free: 49.69 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008615/6.26, allocations: 0.7217 MB / 3.308 GB, free: 49.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/6.26, allocations: 0 / 3.308 GB, free: 49.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/6.26, allocations: 7.531 kB / 3.308 GB, free: 49.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/6.26, allocations: 0 / 3.308 GB, free: 49.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003511/6.26, allocations: 342.6 kB / 3.308 GB, free: 49.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/6.26, allocations: 3.188 kB / 3.308 GB, free: 49.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/6.26, allocations: 28.22 kB / 3.308 GB, free: 49.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/6.261, allocations: 0 / 3.308 GB, free: 49.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/6.261, allocations: 10.69 kB / 3.308 GB, free: 49.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/6.261, allocations: 0 / 3.308 GB, free: 49.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/6.261, allocations: 6.969 kB / 3.308 GB, free: 49.42 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001147/6.262, allocations: 0.9123 MB / 3.309 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001739/6.263, allocations: 1.466 MB / 3.31 GB, free: 48.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.844e-05/6.264, allocations: 97.45 kB / 3.31 GB, free: 48.42 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/6.264, allocations: 4.625 kB / 3.31 GB, free: 48.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/6.264, allocations: 1.562 kB / 3.31 GB, free: 48.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.253e-05/6.264, allocations: 16.91 kB / 3.31 GB, free: 48.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/6.264, allocations: 6.938 kB / 3.31 GB, free: 48.41 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.675e-05/6.264, allocations: 100.2 kB / 3.311 GB, free: 48.34 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005451/6.269, allocations: 1.011 MB / 3.312 GB, free: 48.18 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.008513/6.278, allocations: 1.313 MB / 3.313 GB, free: 47.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004444/6.278, allocations: 304.6 kB / 3.313 GB, free: 47.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/6.278, allocations: 3.469 kB / 3.313 GB, free: 47.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00028/6.279, allocations: 319.4 kB / 3.313 GB, free: 47.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000576/6.279, allocations: 59.66 kB / 3.313 GB, free: 47.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008448/6.28, allocations: 0.5302 MB / 3.314 GB, free: 47.69 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002354/6.28, allocations: 0.7733 MB / 3.315 GB, free: 46.98 MB / 442.7 MB Notification: Performance of SimCode: time 3.3e-07/6.28, allocations: 0 / 3.315 GB, free: 46.98 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)