Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009937/0.0009937, allocations: 94.28 kB / 15.37 MB, free: 0.7266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 179 kB / 16.27 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.399/1.399, allocations: 205.4 MB / 222.4 MB, free: 5.793 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04687/0.04687, allocations: 9.072 MB / 279.8 MB, free: 12.38 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004998/0.0004998, allocations: 12.22 kB / 339.7 MB, free: 25.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09915/0.09966, allocations: 49.2 MB / 388.9 MB, free: 8.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.0198/0.1195, allocations: 17.09 MB / 406 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01826/0.1378, allocations: 16.94 MB / 423 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.1381, allocations: 0 / 423 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008599/0.1389, allocations: 239.6 kB / 423.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01787/0.1568, allocations: 5.217 MB / 428.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.1588, allocations: 469.7 kB / 428.9 MB, free: 364 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002711/0.1591, allocations: 187 kB / 429.1 MB, free: 176 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.51e-05/0.1591, allocations: 5.125 kB / 429.1 MB, free: 168 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001998/0.1593, allocations: 79.53 kB / 429.1 MB, free: 88 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.1595, allocations: 59.77 kB / 429.2 MB, free: 28 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.1595, allocations: 4 kB / 429.2 MB, free: 24 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.218/0.3775, allocations: 8.77 MB / 438 MB, free: 18.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.735e-05/0.3776, allocations: 15.72 kB / 438 MB, free: 18.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.3778, allocations: 81.36 kB / 438.1 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.3909, allocations: 3.871 MB / 441.9 MB, free: 18.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.3909, allocations: 0.7188 kB / 441.9 MB, free: 18.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3909, allocations: 2.75 kB / 441.9 MB, free: 18.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.3909, allocations: 1.156 kB / 441.9 MB, free: 18.08 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.002969/0.3939, allocations: 0.8708 MB / 442.8 MB, free: 17.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.394, allocations: 9.25 kB / 442.8 MB, free: 17.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002439/0.3942, allocations: 30.55 kB / 442.8 MB, free: 17.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002252/0.3945, allocations: 198.8 kB / 443 MB, free: 17.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.3945, allocations: 5.172 kB / 443 MB, free: 17.19 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.3945, allocations: 7.344 kB / 443.1 MB, free: 17.19 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002039/0.3947, allocations: 133.2 kB / 443.2 MB, free: 17.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.3948, allocations: 0 / 443.2 MB, free: 17.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.3948, allocations: 4.531 kB / 443.2 MB, free: 17.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.3948, allocations: 8.297 kB / 443.2 MB, free: 17.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.3949, allocations: 92.94 kB / 443.3 MB, free: 17.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006672/0.3956, allocations: 0.5763 MB / 443.9 MB, free: 16.6 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.3959, allocations: 127.3 kB / 444 MB, free: 16.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.396, allocations: 75.61 kB / 444.1 MB, free: 16.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05667/0.4527, allocations: 32.35 MB / 476.4 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.4528, allocations: 38.56 kB / 476.5 MB, free: 16.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.545e-06/0.4528, allocations: 0 / 476.5 MB, free: 16.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006895/0.4535, allocations: 228.6 kB / 476.7 MB, free: 16.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.4536, allocations: 82.34 kB / 476.8 MB, free: 16.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.4537, allocations: 123.8 kB / 476.9 MB, free: 16.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.4538, allocations: 29.64 kB / 476.9 MB, free: 16.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.4e-05/0.4538, allocations: 86.86 kB / 477 MB, free: 16.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.304e-05/0.4539, allocations: 81.8 kB / 477.1 MB, free: 16.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.4539, allocations: 28.14 kB / 477.1 MB, free: 16.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.454, allocations: 323.8 kB / 477.4 MB, free: 16.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.793e-05/0.4541, allocations: 46.64 kB / 477.5 MB, free: 16.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.09e-05/0.4542, allocations: 69.89 kB / 477.5 MB, free: 16.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.4543, allocations: 114.5 kB / 477.6 MB, free: 16.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4543, allocations: 0 / 477.6 MB, free: 16.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002411/0.4546, allocations: 168.7 kB / 477.8 MB, free: 16.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.4546, allocations: 3.562 kB / 477.8 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.4546, allocations: 3.344 kB / 477.8 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.4546, allocations: 0 / 477.8 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.686e-05/0.4547, allocations: 23.39 kB / 477.8 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.4548, allocations: 7.688 kB / 477.8 MB, free: 16.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.553e-05/0.4549, allocations: 15.53 kB / 477.9 MB, free: 16.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.4549, allocations: 9.219 kB / 477.9 MB, free: 16.03 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (state_p.phase,state_h.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.29e-05/0.455, allocations: 114.4 kB / 478 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.564e-05/0.455, allocations: 11.38 kB / 478 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004369/0.4555, allocations: 322.4 kB / 478.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002583/0.4558, allocations: 237.6 kB / 478.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.4558, allocations: 1.75 kB / 478.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.4558, allocations: 3.938 kB / 478.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009026/0.4567, allocations: 0.7657 MB / 479.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.4567, allocations: 0 / 479.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.4569, allocations: 38.8 kB / 479.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.525e-06/0.4569, allocations: 3.5 kB / 479.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.4569, allocations: 13.67 kB / 479.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.706e-06/0.4569, allocations: 3.938 kB / 479.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4569, allocations: 0 / 479.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005642/0.4575, allocations: 0.5211 MB / 479.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.549e-05/0.4576, allocations: 92.42 kB / 480 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.586e-05/0.4576, allocations: 6.812 kB / 480 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.4578, allocations: 8 kB / 480 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.796e-05/0.4578, allocations: 18.44 kB / 480 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.4579, allocations: 10.78 kB / 480 MB, free: 14.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.343e-05/0.4579, allocations: 97.39 kB / 480.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.91e-07/0.4579, allocations: 0 / 480.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002974/0.4609, allocations: 0.9253 MB / 481 MB, free: 14.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_h_int,d_p_int) * Number of discrete variables: 4 (state_h.phase,$cse2.phase,state_p.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005603/0.4665, allocations: 1.426 MB / 482.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004292/0.467, allocations: 261.9 kB / 482.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.467, allocations: 0 / 482.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.4672, allocations: 126.4 kB / 482.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.4682, allocations: 137.3 kB / 483 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009947/0.4692, allocations: 0.571 MB / 483.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/0.4696, allocations: 0.7331 MB / 484.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001935/0.4698, allocations: 46.92 kB / 484.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.132e-05/0.4698, allocations: 27.44 kB / 484.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4698, allocations: 0 / 484.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of Templates: time 0.04664/0.5165, allocations: 27.71 MB / 0.5001 GB, free: 15.5 MB / 382.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.makefile Environment - environmentSimulation: (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1) Environment - environmentSimulation: