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/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: 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/Complex 3.2.3+maint.om/package.mo): time 0.001401/0.001401, allocations: 182.5 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04722/0.04722, allocations: 9.088 MB / 25.82 MB, free: 3.406 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.313/1.313, allocations: 205.1 MB / 233.2 MB, free: 14.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009923/0.0009926, allocations: 91.56 kB / 282.1 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009905/0.0009907, allocations: 51.92 kB / 341.1 MB, free: 4.098 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2122, allocations: 48.16 MB / 389.2 MB, free: 38.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01323/0.2255, allocations: 17.59 MB / 406.8 MB, free: 20.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.2364, allocations: 17.12 MB / 423.9 MB, free: 3.707 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.099e-05/0.2366, allocations: 0 / 423.9 MB, free: 3.707 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007504/0.2374, allocations: 241.4 kB / 424.2 MB, free: 3.473 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01326/0.2506, allocations: 5.218 MB / 429.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001338/0.252, allocations: 457.8 kB / 429.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000197/0.2522, allocations: 195 kB / 430 MB, free: 13.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.682e-05/0.2523, allocations: 5.125 kB / 430 MB, free: 13.6 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.2524, allocations: 71.66 kB / 430.1 MB, free: 13.53 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.784e-05/0.2525, allocations: 63.72 kB / 430.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.2525, allocations: 4 kB / 430.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01423/0.2667, allocations: 8.789 MB / 439 MB, free: 4.652 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.732e-05/0.2668, allocations: 19.91 kB / 439 MB, free: 4.633 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.582e-05/0.2669, allocations: 47.75 kB / 439 MB, free: 4.586 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009432/0.2763, allocations: 3.878 MB / 442.9 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2764, allocations: 0 / 442.9 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2764, allocations: 0 / 442.9 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.207e-06/0.2764, allocations: 0 / 442.9 MB, free: 0.6992 MB / 314.7 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.001612/0.278, allocations: 0.8889 MB / 443.8 MB, free: 15.76 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.2781, allocations: 12.03 kB / 443.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.2783, allocations: 31.81 kB / 443.8 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.2785, allocations: 202.8 kB / 444 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.2785, allocations: 8 kB / 444 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.2785, allocations: 4 kB / 444 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.2787, allocations: 132.4 kB / 444.2 MB, free: 15.33 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.2787, allocations: 0 / 444.2 MB, free: 15.33 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.2788, allocations: 3.938 kB / 444.2 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.2788, allocations: 7.938 kB / 444.2 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.2789, allocations: 99.95 kB / 444.3 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006164/0.2795, allocations: 0.5739 MB / 444.9 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.2798, allocations: 121.1 kB / 445 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.2799, allocations: 89.69 kB / 445.1 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05877/0.3387, allocations: 33.17 MB / 478.2 MB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.3387, allocations: 38.5 kB / 478.3 MB, free: 7.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.395e-06/0.3388, allocations: 4 kB / 478.3 MB, free: 7.578 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006992/0.3395, allocations: 229.9 kB / 478.5 MB, free: 7.348 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.3395, allocations: 81.05 kB / 478.6 MB, free: 7.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.353e-05/0.3396, allocations: 117.8 kB / 478.7 MB, free: 7.125 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.3397, allocations: 25.7 kB / 478.7 MB, free: 7.094 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.103e-05/0.3397, allocations: 92.94 kB / 478.8 MB, free: 7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.002e-05/0.3398, allocations: 82.84 kB / 478.9 MB, free: 6.918 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.99e-05/0.3399, allocations: 33.7 kB / 478.9 MB, free: 6.879 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.34, allocations: 326.8 kB / 479.2 MB, free: 6.551 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.431e-05/0.3401, allocations: 47.92 kB / 479.3 MB, free: 6.504 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.374e-05/0.3402, allocations: 69.62 kB / 479.4 MB, free: 6.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/0.3404, allocations: 121.6 kB / 479.5 MB, free: 6.305 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3404, allocations: 0 / 479.5 MB, free: 6.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002725/0.3406, allocations: 169.6 kB / 479.6 MB, free: 6.133 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.3407, allocations: 8 kB / 479.7 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3407, allocations: 0 / 479.7 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.509e-05/0.3407, allocations: 0 / 479.7 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.3408, allocations: 19.94 kB / 479.7 MB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.3409, allocations: 4 kB / 479.7 MB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.317e-05/0.341, allocations: 15.78 kB / 479.7 MB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.341, allocations: 7.984 kB / 479.7 MB, free: 6.078 MB / 362.7 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.455e-05/0.3411, allocations: 117.8 kB / 479.8 MB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.38e-05/0.3412, allocations: 19.91 kB / 479.8 MB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004605/0.3416, allocations: 313.5 kB / 480.1 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002687/0.3419, allocations: 241.5 kB / 480.4 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3419, allocations: 0 / 480.4 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.3419, allocations: 3.984 kB / 480.4 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008857/0.3428, allocations: 0.7662 MB / 481.1 MB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3428, allocations: 0 / 481.1 MB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.343, allocations: 43.92 kB / 481.2 MB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.343, allocations: 0 / 481.2 MB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.343, allocations: 11.94 kB / 481.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3431, allocations: 320 / 481.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3431, allocations: 0 / 481.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3058/0.6488, allocations: 45.27 MB / 0.5141 GB, free: 86.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.6489, allocations: 101.5 kB / 0.5142 GB, free: 86.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.649, allocations: 11.38 kB / 0.5142 GB, free: 86.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.6491, allocations: 4 kB / 0.5142 GB, free: 86.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.413e-05/0.6492, allocations: 15.97 kB / 0.5143 GB, free: 86.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.6492, allocations: 12 kB / 0.5143 GB, free: 86.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.374e-05/0.6492, allocations: 91.03 kB / 0.5144 GB, free: 86.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6492, allocations: 0 / 0.5144 GB, free: 86.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00369/0.6529, allocations: 1.76 MB / 0.5161 GB, free: 84.69 MB / 378.7 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.00847/0.6614, allocations: 2.17 MB / 0.5182 GB, free: 82.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003796/0.6618, allocations: 239.5 kB / 0.5184 GB, free: 82.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.6618, allocations: 0 / 0.5184 GB, free: 82.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.662, allocations: 127 kB / 0.5185 GB, free: 82.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.663, allocations: 148.2 kB / 0.5187 GB, free: 82.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009749/0.664, allocations: 0.7555 MB / 0.5194 GB, free: 81.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001573/0.6642, allocations: 0.7419 MB / 0.5202 GB, free: 80.67 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001629/0.6643, allocations: 53.83 kB / 0.5202 GB, free: 80.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.035e-05/0.6644, allocations: 27.44 kB / 0.5202 GB, free: 80.59 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.6644, allocations: 0 / 0.5202 GB, free: 80.59 MB / 378.7 MB Notification: Performance of Templates: time 0.08091/0.7453, allocations: 68.44 MB / 0.5871 GB, free: 12.02 MB / 378.7 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)