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.000864/0.0008639, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001039/0.00104, allocations: 168.7 kB / 15.95 MB, free: 200 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.378/1.378, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04356/0.04356, allocations: 9.068 MB / 279.5 MB, free: 12.25 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.0004963/0.0004965, allocations: 20 kB / 339.1 MB, free: 25.99 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0769/0.07741, allocations: 49.19 MB / 388.3 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01729/0.09473, allocations: 16.04 MB / 404.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01379/0.1086, allocations: 15.71 MB / 420.1 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.229e-05/0.1087, allocations: 0 / 420.1 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005546/0.1093, allocations: 222.9 kB / 420.3 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01283/0.1221, allocations: 4.944 MB / 425.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.1232, allocations: 429.8 kB / 425.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.1234, allocations: 179 kB / 425.8 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.358e-05/0.1235, allocations: 5.406 kB / 425.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.1236, allocations: 79.59 kB / 425.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.954e-05/0.1237, allocations: 55.77 kB / 426 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.1237, allocations: 4 kB / 426 MB, free: 3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1953/0.319, allocations: 7.847 MB / 433.8 MB, free: 20.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.8e-05/0.3191, allocations: 19.28 kB / 433.8 MB, free: 20.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.712e-05/0.3191, allocations: 44.86 kB / 433.9 MB, free: 20.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005317/0.3245, allocations: 2.339 MB / 436.2 MB, free: 20.44 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.3245, allocations: 0 / 436.2 MB, free: 20.44 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3245, allocations: 1.094 kB / 436.2 MB, free: 20.44 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.3245, allocations: 0.625 kB / 436.2 MB, free: 20.44 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.002315/0.3268, allocations: 0.8739 MB / 437.1 MB, free: 19.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3269, allocations: 9.625 kB / 437.1 MB, free: 19.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.3271, allocations: 31.56 kB / 437.1 MB, free: 19.81 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.3273, allocations: 191.6 kB / 437.3 MB, free: 19.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.3273, allocations: 5.812 kB / 437.3 MB, free: 19.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.476e-05/0.3273, allocations: 6.594 kB / 437.3 MB, free: 19.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001876/0.3275, allocations: 131.5 kB / 437.5 MB, free: 19.56 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3275, allocations: 0 / 437.5 MB, free: 19.56 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.3275, allocations: 4.703 kB / 437.5 MB, free: 19.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.3276, allocations: 1.375 kB / 437.5 MB, free: 19.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.3277, allocations: 99.83 kB / 437.6 MB, free: 19.56 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005299/0.3282, allocations: 0.5777 MB / 438.1 MB, free: 19.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.3285, allocations: 130.2 kB / 438.3 MB, free: 19.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.917e-05/0.3286, allocations: 86.27 kB / 438.4 MB, free: 19.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05014/0.3787, allocations: 32.34 MB / 470.7 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.3788, allocations: 36.39 kB / 470.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.907e-06/0.3788, allocations: 3.938 kB / 470.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007123/0.3795, allocations: 230.5 kB / 471 MB, free: 5.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.3796, allocations: 84.7 kB / 471 MB, free: 5.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.3797, allocations: 123.1 kB / 471.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.3798, allocations: 28.42 kB / 471.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.445e-05/0.3798, allocations: 92.06 kB / 471.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.946e-05/0.3799, allocations: 79.23 kB / 471.4 MB, free: 4.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.004e-06/0.3799, allocations: 2.625 kB / 471.4 MB, free: 4.887 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.3801, allocations: 322.3 kB / 471.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.075e-05/0.3801, allocations: 41.48 kB / 471.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.515e-05/0.3802, allocations: 69.72 kB / 471.8 MB, free: 4.539 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.536e-05/0.3803, allocations: 66.86 kB / 471.9 MB, free: 4.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3803, allocations: 0 / 471.9 MB, free: 4.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002424/0.3806, allocations: 169.1 kB / 472 MB, free: 4.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.3806, allocations: 6.062 kB / 472 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.3806, allocations: 0 / 472 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3806, allocations: 3.562 kB / 472 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.103e-05/0.3807, allocations: 23.86 kB / 472 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.3807, allocations: 0 / 472 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.944e-05/0.3809, allocations: 11.12 kB / 472.1 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.3809, allocations: 3.656 kB / 472.1 MB, free: 4.477 MB / 334.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 0.0002708/0.3812, allocations: 120.7 kB / 472.2 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.799e-05/0.3812, allocations: 14.7 kB / 472.2 MB, free: 20.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004483/0.3817, allocations: 311.8 kB / 472.5 MB, free: 20.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003265/0.382, allocations: 239.7 kB / 472.7 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.086e-06/0.382, allocations: 2.375 kB / 472.7 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.382, allocations: 0 / 472.7 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009267/0.383, allocations: 0.7581 MB / 473.5 MB, free: 19.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.383, allocations: 0 / 473.5 MB, free: 19.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.3832, allocations: 40.14 kB / 473.5 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.3832, allocations: 3.625 kB / 473.5 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.3832, allocations: 9.766 kB / 473.5 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3832, allocations: 0 / 473.5 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3832, allocations: 0 / 473.5 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004763/0.3837, allocations: 0.5266 MB / 474.1 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.53e-05/0.3838, allocations: 97.91 kB / 474.2 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.3838, allocations: 7.406 kB / 474.2 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.3839, allocations: 6.906 kB / 474.2 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.975e-05/0.384, allocations: 21.3 kB / 474.2 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.384, allocations: 8.094 kB / 474.2 MB, free: 19.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.143e-05/0.384, allocations: 98.22 kB / 474.3 MB, free: 19.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3841, allocations: 0 / 474.3 MB, free: 19.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003595/0.3877, allocations: 0.9339 MB / 475.2 MB, free: 19.06 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.006086/0.3938, allocations: 1.416 MB / 476.7 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003799/0.3942, allocations: 244.9 kB / 476.9 MB, free: 18.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3942, allocations: 0 / 476.9 MB, free: 18.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.3943, allocations: 122.2 kB / 477 MB, free: 18.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009612/0.3953, allocations: 150.5 kB / 477.2 MB, free: 18.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007713/0.3961, allocations: 0.563 MB / 477.7 MB, free: 18.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.3964, allocations: 0.7346 MB / 478.5 MB, free: 17.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.3965, allocations: 49.03 kB / 478.5 MB, free: 17.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.182e-05/0.3966, allocations: 23.97 kB / 478.5 MB, free: 17.31 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3966, allocations: 3.594 kB / 478.5 MB, free: 17.31 MB / 350.1 MB Notification: Performance of Templates: time 0.04086/0.4375, allocations: 27.46 MB / 0.4941 GB, free: 6.52 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: