Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.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.CheckDerivativesButane,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesButane,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 183.2 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.04685/0.04685, allocations: 9.094 MB / 25.82 MB, free: 3.422 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.31/1.31, allocations: 205.1 MB / 233.2 MB, free: 14.17 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.001043/0.001043, allocations: 95.53 kB / 282.1 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 47.92 kB / 341.1 MB, free: 4.078 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2165, allocations: 48.17 MB / 389.2 MB, free: 38.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01554/0.2321, allocations: 17.66 MB / 406.9 MB, free: 20.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01318/0.2453, allocations: 17.22 MB / 424.1 MB, free: 3.504 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.2455, allocations: 0 / 424.1 MB, free: 3.504 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007104/0.2463, allocations: 261.4 kB / 424.4 MB, free: 3.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01446/0.2607, allocations: 5.274 MB / 429.6 MB, free: 13.96 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001591/0.2623, allocations: 485.8 kB / 430.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.2626, allocations: 198.9 kB / 430.3 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.403e-05/0.2626, allocations: 5.125 kB / 430.3 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.2628, allocations: 87.59 kB / 430.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.296e-05/0.2629, allocations: 63.64 kB / 430.5 MB, free: 13.14 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.2629, allocations: 8 kB / 430.5 MB, free: 13.13 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01564/0.2786, allocations: 9.147 MB / 439.6 MB, free: 3.961 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.702e-05/0.2787, allocations: 19.86 kB / 439.6 MB, free: 3.941 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.719e-05/0.2788, allocations: 55.78 kB / 439.7 MB, free: 3.887 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01148/0.2903, allocations: 3.886 MB / 443.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.2903, allocations: 0 / 443.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2903, allocations: 0 / 443.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.2903, allocations: 0 / 443.6 MB, free: 15.99 MB / 330.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.001882/0.2922, allocations: 0.8811 MB / 444.5 MB, free: 15.06 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.2923, allocations: 12.03 kB / 444.5 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.2925, allocations: 35.81 kB / 444.5 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002129/0.2927, allocations: 198.8 kB / 444.7 MB, free: 14.78 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.2927, allocations: 11.94 kB / 444.7 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.2927, allocations: 4 kB / 444.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/0.2929, allocations: 132.4 kB / 444.8 MB, free: 14.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.293, allocations: 0 / 444.8 MB, free: 14.62 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.293, allocations: 8 kB / 444.9 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.293, allocations: 3.938 kB / 444.9 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001341/0.2931, allocations: 95.95 kB / 445 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006454/0.2938, allocations: 0.5737 MB / 445.5 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.2941, allocations: 125.1 kB / 445.7 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.2942, allocations: 89.69 kB / 445.7 MB, free: 13.63 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0602/0.3544, allocations: 33.17 MB / 478.9 MB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.3545, allocations: 38.56 kB / 479 MB, free: 6.875 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.935e-06/0.3545, allocations: 0 / 479 MB, free: 6.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007432/0.3552, allocations: 241.1 kB / 479.2 MB, free: 6.633 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.3553, allocations: 81.11 kB / 479.3 MB, free: 6.535 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.3554, allocations: 114.1 kB / 479.4 MB, free: 6.414 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.3554, allocations: 25.7 kB / 479.4 MB, free: 6.383 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.194e-05/0.3555, allocations: 88.58 kB / 479.5 MB, free: 6.293 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.759e-05/0.3556, allocations: 78.94 kB / 479.6 MB, free: 6.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.878e-05/0.3556, allocations: 41.64 kB / 479.6 MB, free: 6.168 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.3558, allocations: 326.8 kB / 479.9 MB, free: 5.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.091e-05/0.3559, allocations: 43.98 kB / 480 MB, free: 5.797 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.356, allocations: 73.56 kB / 480 MB, free: 5.719 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.3561, allocations: 117.7 kB / 480.2 MB, free: 5.598 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3562, allocations: 0 / 480.2 MB, free: 5.598 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002469/0.3564, allocations: 173.5 kB / 480.3 MB, free: 5.422 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.3564, allocations: 8 kB / 480.3 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3564, allocations: 0 / 480.3 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.3565, allocations: 0 / 480.3 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.587e-05/0.3566, allocations: 16 kB / 480.3 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.3566, allocations: 4 kB / 480.4 MB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.394e-05/0.3567, allocations: 11.84 kB / 480.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.3567, allocations: 7.984 kB / 480.4 MB, free: 5.375 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 0.0001069/0.3568, allocations: 125.7 kB / 480.5 MB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.671e-05/0.3569, allocations: 15.91 kB / 480.5 MB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004574/0.3573, allocations: 309.6 kB / 480.8 MB, free: 4.918 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002761/0.3576, allocations: 241.5 kB / 481 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3576, allocations: 0 / 481 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.3576, allocations: 3.984 kB / 481.1 MB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008839/0.3585, allocations: 0.7584 MB / 481.8 MB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3585, allocations: 0 / 481.8 MB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.3587, allocations: 47.98 kB / 481.9 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.3587, allocations: 4 kB / 481.9 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.3588, allocations: 4 kB / 481.9 MB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.3588, allocations: 0 / 481.9 MB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3588, allocations: 0 / 481.9 MB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3488/0.7076, allocations: 44.46 MB / 0.514 GB, free: 86.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.664e-05/0.7077, allocations: 92.5 kB / 0.5141 GB, free: 86.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.7078, allocations: 8 kB / 0.5141 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.708, allocations: 0 / 0.5141 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-05/0.708, allocations: 19.97 kB / 0.5141 GB, free: 86.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.7081, allocations: 9.875 kB / 0.5141 GB, free: 86.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.609e-05/0.7081, allocations: 99.33 kB / 0.5142 GB, free: 86.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7082, allocations: 3.75 kB / 0.5142 GB, free: 86.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005264/0.7134, allocations: 1.756 MB / 0.5159 GB, free: 84.77 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.01123/0.7247, allocations: 2.15 MB / 0.518 GB, free: 82.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004989/0.7252, allocations: 247.1 kB / 0.5183 GB, free: 82.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.7252, allocations: 0 / 0.5183 GB, free: 82.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.7254, allocations: 120.9 kB / 0.5184 GB, free: 82.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.727, allocations: 140.3 kB / 0.5185 GB, free: 82.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.7282, allocations: 0.7699 MB / 0.5193 GB, free: 81.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.7284, allocations: 0.7419 MB / 0.52 GB, free: 80.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002047/0.7286, allocations: 50.17 kB / 0.52 GB, free: 80.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.321e-05/0.7287, allocations: 31.38 kB / 0.5201 GB, free: 80.69 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.7287, allocations: 0 / 0.5201 GB, free: 80.69 MB / 378.7 MB Notification: Performance of Templates: time 0.1205/0.8492, allocations: 68.43 MB / 0.5869 GB, free: 12.12 MB / 378.7 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1)