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.001063/0.001063, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001324/0.001324, allocations: 190.1 kB / 16.14 MB, free: 6.703 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.281/1.281, allocations: 205.1 MB / 222 MB, free: 4.953 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04682/0.04682, allocations: 9.09 MB / 278.4 MB, free: 12.59 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.001212/0.001212, allocations: 63.92 kB / 337.3 MB, free: 25.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07494/0.07616, allocations: 48.18 MB / 385.5 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01674/0.09294, allocations: 17.59 MB / 403.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01392/0.1069, allocations: 17.13 MB / 420.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.679e-05/0.107, allocations: 0 / 420.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006877/0.1078, allocations: 247.6 kB / 420.5 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01333/0.1211, allocations: 5.197 MB / 425.7 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.1223, allocations: 469.7 kB / 426.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001707/0.1225, allocations: 183 kB / 426.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.012e-05/0.1226, allocations: 13.11 kB / 426.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.1227, allocations: 79.59 kB / 426.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.145e-05/0.1228, allocations: 51.72 kB / 426.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.1228, allocations: 4 kB / 426.5 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1632/0.286, allocations: 8.785 MB / 435.2 MB, free: 18.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.033e-05/0.2861, allocations: 11.52 kB / 435.2 MB, free: 18.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.172e-05/0.2862, allocations: 51.64 kB / 435.3 MB, free: 18.44 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00793/0.2941, allocations: 3.884 MB / 439.2 MB, free: 18.35 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2941, allocations: 4.594 kB / 439.2 MB, free: 18.35 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2941, allocations: 2.078 kB / 439.2 MB, free: 18.35 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.2942, allocations: 2 kB / 439.2 MB, free: 18.35 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.001874/0.296, allocations: 0.8811 MB / 440.1 MB, free: 17.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.2961, allocations: 8.344 kB / 440.1 MB, free: 17.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.2963, allocations: 30.34 kB / 440.1 MB, free: 17.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.2964, allocations: 195 kB / 440.3 MB, free: 17.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.2964, allocations: 11.48 kB / 440.3 MB, free: 17.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.2965, allocations: 8.938 kB / 440.3 MB, free: 17.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001695/0.2966, allocations: 127.4 kB / 440.4 MB, free: 17.47 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.2967, allocations: 0 / 440.4 MB, free: 17.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.2967, allocations: 6.344 kB / 440.5 MB, free: 17.47 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.2967, allocations: 6.594 kB / 440.5 MB, free: 17.47 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001153/0.2968, allocations: 99.17 kB / 440.6 MB, free: 17.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004758/0.2973, allocations: 0.5801 MB / 441.1 MB, free: 16.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.2975, allocations: 122.1 kB / 441.3 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.212e-05/0.2976, allocations: 82.61 kB / 441.3 MB, free: 16.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0537/0.3513, allocations: 33.17 MB / 474.5 MB, free: 17.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.3514, allocations: 34.25 kB / 474.5 MB, free: 17.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.405e-06/0.3514, allocations: 0 / 474.5 MB, free: 17.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.000587/0.352, allocations: 231.1 kB / 474.8 MB, free: 17.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.3521, allocations: 82.7 kB / 474.8 MB, free: 17.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.532e-05/0.3521, allocations: 129.6 kB / 475 MB, free: 17.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.3522, allocations: 25.7 kB / 475 MB, free: 17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.455e-05/0.3522, allocations: 88.02 kB / 475.1 MB, free: 16.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.66e-05/0.3523, allocations: 76.31 kB / 475.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.3523, allocations: 34.45 kB / 475.2 MB, free: 16.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.3524, allocations: 324.1 kB / 475.5 MB, free: 16.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.187e-05/0.3525, allocations: 45.61 kB / 475.6 MB, free: 16.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.999e-05/0.3526, allocations: 65.98 kB / 475.6 MB, free: 16.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.3527, allocations: 127 kB / 475.7 MB, free: 16.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.3527, allocations: 2.25 kB / 475.7 MB, free: 16.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002085/0.3529, allocations: 165.4 kB / 475.9 MB, free: 16.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.353, allocations: 6.781 kB / 475.9 MB, free: 16.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.353, allocations: 0 / 475.9 MB, free: 16.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.353, allocations: 0 / 475.9 MB, free: 16.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.288e-05/0.3531, allocations: 27.67 kB / 475.9 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.3531, allocations: 2.188 kB / 475.9 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.268e-05/0.3532, allocations: 21.28 kB / 476 MB, free: 16.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.3532, allocations: 7.344 kB / 476 MB, free: 16.4 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.216e-05/0.3533, allocations: 113.2 kB / 476.1 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.369e-05/0.3534, allocations: 14.92 kB / 476.1 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.3537, allocations: 318.9 kB / 476.4 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002254/0.354, allocations: 248.8 kB / 476.6 MB, free: 16.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.354, allocations: 0 / 476.6 MB, free: 16.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.354, allocations: 3.938 kB / 476.7 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007661/0.3548, allocations: 0.7514 MB / 477.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3548, allocations: 0 / 477.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.3549, allocations: 40.14 kB / 477.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3549, allocations: 4.875 kB / 477.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.355, allocations: 11.42 kB / 477.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.355, allocations: 2.906 kB / 477.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.355, allocations: 3.656 kB / 477.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004663/0.3554, allocations: 0.5121 MB / 478 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.189e-05/0.3555, allocations: 96.89 kB / 478.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.3555, allocations: 4.438 kB / 478.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.3557, allocations: 15.75 kB / 478.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.097e-05/0.3557, allocations: 21.34 kB / 478.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.3557, allocations: 9.812 kB / 478.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.9e-05/0.3558, allocations: 98.36 kB / 478.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3558, allocations: 0 / 478.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002282/0.3581, allocations: 0.9222 MB / 479.1 MB, free: 14.2 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.003916/0.362, allocations: 1.423 MB / 480.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003142/0.3623, allocations: 263.3 kB / 480.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.3623, allocations: 3.562 kB / 480.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.3625, allocations: 122.5 kB / 480.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008787/0.3634, allocations: 138 kB / 481.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000772/0.3642, allocations: 0.5289 MB / 481.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.3644, allocations: 0.737 MB / 482.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.3646, allocations: 42.78 kB / 482.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.482e-05/0.3646, allocations: 27.44 kB / 482.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3646, allocations: 0 / 482.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of Templates: time 0.03767/0.4023, allocations: 27.73 MB / 0.4982 GB, free: 15.67 MB / 382.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.makefile (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)