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.0009894/0.0009894, allocations: 103.3 kB / 15.06 MB, free: 1.098 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.001037/0.001037, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04278/0.04278, allocations: 9.052 MB / 279.4 MB, free: 12.27 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.0004715/0.0004716, allocations: 12.22 kB / 339.1 MB, free: 26.03 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07745/0.07793, allocations: 49.19 MB / 388.3 MB, free: 8.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01605/0.09402, allocations: 14.48 MB / 402.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01322/0.1073, allocations: 13.17 MB / 415.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.938e-05/0.1074, allocations: 0 / 415.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006178/0.108, allocations: 235.2 kB / 416.2 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00836/0.1164, allocations: 3.169 MB / 419.3 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0062/0.1226, allocations: 2.249 MB / 421.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002415/0.1229, allocations: 131.7 kB / 421.7 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.321e-05/0.1229, allocations: 5.406 kB / 421.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.1231, allocations: 79.75 kB / 421.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.1232, allocations: 59.77 kB / 421.8 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.1232, allocations: 4 kB / 421.8 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1969/0.3201, allocations: 8.673 MB / 430.5 MB, free: 18.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.407e-05/0.3202, allocations: 14.98 kB / 430.5 MB, free: 18.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.3203, allocations: 48.2 kB / 430.6 MB, free: 18.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006102/0.3264, allocations: 2.206 MB / 432.8 MB, free: 18.76 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.3264, allocations: 0 / 432.8 MB, free: 18.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3264, allocations: 0 / 432.8 MB, free: 18.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.3265, allocations: 0.5625 kB / 432.8 MB, free: 18.76 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.002714/0.3292, allocations: 0.8608 MB / 433.6 MB, free: 18.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3292, allocations: 9.281 kB / 433.7 MB, free: 18.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002063/0.3294, allocations: 28.08 kB / 433.7 MB, free: 18.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.3296, allocations: 204.2 kB / 433.9 MB, free: 17.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.3297, allocations: 2.312 kB / 433.9 MB, free: 17.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.316e-05/0.3297, allocations: 7.938 kB / 433.9 MB, free: 17.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001934/0.3299, allocations: 133.8 kB / 434 MB, free: 17.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3299, allocations: 1.094 kB / 434 MB, free: 17.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.3299, allocations: 2.5 kB / 434 MB, free: 17.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-06/0.3299, allocations: 8.969 kB / 434 MB, free: 17.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.3301, allocations: 91.7 kB / 434.1 MB, free: 17.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005973/0.3307, allocations: 0.5803 MB / 434.7 MB, free: 17.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.3309, allocations: 127.6 kB / 434.8 MB, free: 17.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05637/0.3873, allocations: 32.45 MB / 467.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.3874, allocations: 36.5 kB / 467.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.124e-06/0.3874, allocations: 0 / 467.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006891/0.3881, allocations: 396.9 kB / 467.7 MB, free: 4.887 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.3882, allocations: 81.77 kB / 467.8 MB, free: 4.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.604e-05/0.3882, allocations: 120.9 kB / 467.9 MB, free: 4.695 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.3883, allocations: 31.17 kB / 467.9 MB, free: 4.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.154e-05/0.3883, allocations: 87.08 kB / 468 MB, free: 4.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.678e-05/0.3884, allocations: 82.39 kB / 468.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.481e-06/0.3884, allocations: 0 / 468.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002383/0.3886, allocations: 323.3 kB / 468.4 MB, free: 20.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.743e-05/0.3887, allocations: 47.14 kB / 468.5 MB, free: 20.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.131e-05/0.3888, allocations: 75.88 kB / 468.5 MB, free: 20.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.664e-05/0.3888, allocations: 48.09 kB / 468.6 MB, free: 20.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3889, allocations: 0 / 468.6 MB, free: 20.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001917/0.389, allocations: 171.3 kB / 468.7 MB, free: 20.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.3891, allocations: 6.109 kB / 468.8 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3891, allocations: 5.328 kB / 468.8 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.3891, allocations: 0 / 468.8 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.914e-05/0.3892, allocations: 17.84 kB / 468.8 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.3892, allocations: 7.312 kB / 468.8 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.851e-05/0.3893, allocations: 12.17 kB / 468.8 MB, free: 20.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.3893, allocations: 5.562 kB / 468.8 MB, free: 20.13 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.247e-05/0.3894, allocations: 117.8 kB / 468.9 MB, free: 20.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.3894, allocations: 14.14 kB / 468.9 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003606/0.3898, allocations: 312.7 kB / 469.2 MB, free: 19.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002162/0.39, allocations: 239 kB / 469.5 MB, free: 19.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.39, allocations: 0 / 469.5 MB, free: 19.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.39, allocations: 0 / 469.5 MB, free: 19.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000736/0.3908, allocations: 0.7607 MB / 470.2 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3908, allocations: 2.969 kB / 470.2 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.3909, allocations: 37.08 kB / 470.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.391, allocations: 7.016 kB / 470.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.391, allocations: 11.16 kB / 470.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.391, allocations: 0 / 470.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.391, allocations: 3.625 kB / 470.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004464/0.3914, allocations: 0.534 MB / 470.8 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.325e-05/0.3915, allocations: 99.05 kB / 470.9 MB, free: 19.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.3915, allocations: 3.625 kB / 470.9 MB, free: 19.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.3917, allocations: 18.23 kB / 470.9 MB, free: 19.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.277e-05/0.3917, allocations: 21.73 kB / 471 MB, free: 19.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.3917, allocations: 6.156 kB / 471 MB, free: 19.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.761e-05/0.3918, allocations: 96.86 kB / 471.1 MB, free: 19.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3918, allocations: 0 / 471.1 MB, free: 19.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003374/0.3952, allocations: 0.9212 MB / 472 MB, free: 18.9 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 (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.003361/0.3985, allocations: 1.421 MB / 473.4 MB, free: 18.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002818/0.3988, allocations: 248 kB / 473.6 MB, free: 18.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3988, allocations: 0 / 473.6 MB, free: 18.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.3989, allocations: 122.9 kB / 473.8 MB, free: 18.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007745/0.3997, allocations: 147.2 kB / 473.9 MB, free: 18.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006612/0.4004, allocations: 0.5553 MB / 474.5 MB, free: 17.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.4007, allocations: 0.7468 MB / 475.2 MB, free: 17.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001263/0.4008, allocations: 44.97 kB / 475.3 MB, free: 17.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.4009, allocations: 32.47 kB / 475.3 MB, free: 17.13 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4009, allocations: 0 / 475.3 MB, free: 17.13 MB / 350.1 MB Notification: Performance of Templates: time 0.03622/0.4371, allocations: 27.42 MB / 0.4909 GB, free: 7.508 MB / 366.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: