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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001008/0.001008, allocations: 177.3 kB / 15.95 MB, free: 216 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.365/1.365, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04487/0.04487, allocations: 9.068 MB / 279.4 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.0005088/0.0005088, allocations: 16 kB / 339.1 MB, free: 26.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08422/0.08474, allocations: 49.19 MB / 388.3 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01621/0.101, allocations: 14.54 MB / 402.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01295/0.114, allocations: 13.26 MB / 416.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.1142, allocations: 4 kB / 416.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006126/0.1148, allocations: 251.1 kB / 416.3 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00741/0.1222, allocations: 3.181 MB / 419.5 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005786/0.128, allocations: 2.289 MB / 421.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002207/0.1282, allocations: 135.7 kB / 421.9 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.01e-05/0.1283, allocations: 9.406 kB / 421.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.1284, allocations: 91.69 kB / 422 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.727e-05/0.1285, allocations: 51.83 kB / 422.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.055e-05/0.1286, allocations: 4 kB / 422.1 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1869/0.3154, allocations: 8.93 MB / 431 MB, free: 18.92 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.731e-05/0.3155, allocations: 12.27 kB / 431 MB, free: 18.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.485e-05/0.3156, allocations: 46.05 kB / 431.1 MB, free: 18.89 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006189/0.3218, allocations: 2.207 MB / 433.3 MB, free: 18.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3218, allocations: 2.969 kB / 433.3 MB, free: 18.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3219, allocations: 0.9375 kB / 433.3 MB, free: 18.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.3219, allocations: 0 / 433.3 MB, free: 18.79 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.00297/0.3248, allocations: 0.8642 MB / 434.1 MB, free: 18.17 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3249, allocations: 8.719 kB / 434.2 MB, free: 18.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002135/0.3251, allocations: 31.38 kB / 434.2 MB, free: 18.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.3253, allocations: 194.2 kB / 434.4 MB, free: 17.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.3253, allocations: 6.5 kB / 434.4 MB, free: 17.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.518e-05/0.3254, allocations: 3.75 kB / 434.4 MB, free: 17.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002481/0.3256, allocations: 132.8 kB / 434.5 MB, free: 17.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.3257, allocations: 0 / 434.5 MB, free: 17.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.3257, allocations: 3.906 kB / 434.5 MB, free: 17.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.3257, allocations: 5.062 kB / 434.5 MB, free: 17.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001692/0.3259, allocations: 99.44 kB / 434.6 MB, free: 17.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006981/0.3266, allocations: 0.5797 MB / 435.2 MB, free: 17.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/0.3269, allocations: 129.9 kB / 435.3 MB, free: 17.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05739/0.3843, allocations: 32.45 MB / 467.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.3844, allocations: 37.59 kB / 467.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.236e-06/0.3844, allocations: 0 / 467.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007056/0.3851, allocations: 390.9 kB / 468.2 MB, free: 4.922 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.3851, allocations: 77.11 kB / 468.3 MB, free: 4.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.972e-05/0.3852, allocations: 123.3 kB / 468.4 MB, free: 4.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.3853, allocations: 36.05 kB / 468.4 MB, free: 4.695 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.384e-05/0.3853, allocations: 87.05 kB / 468.5 MB, free: 4.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.22e-05/0.3854, allocations: 79.78 kB / 468.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-06/0.3854, allocations: 5.938 kB / 468.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002671/0.3857, allocations: 318.9 kB / 468.9 MB, free: 20.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.079e-05/0.3857, allocations: 45.34 kB / 468.9 MB, free: 20.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.866e-05/0.3858, allocations: 69.92 kB / 469 MB, free: 20.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.704e-05/0.3859, allocations: 51.83 kB / 469.1 MB, free: 20.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3859, allocations: 4 kB / 469.1 MB, free: 20.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000215/0.3861, allocations: 164.9 kB / 469.2 MB, free: 20.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3861, allocations: 8.766 kB / 469.2 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3862, allocations: 3.594 kB / 469.2 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.3862, allocations: 0 / 469.2 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.57e-05/0.3863, allocations: 21.77 kB / 469.3 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.3863, allocations: 6.375 kB / 469.3 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.717e-05/0.3864, allocations: 13.67 kB / 469.3 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.3864, allocations: 6.312 kB / 469.3 MB, free: 20.17 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 9.147e-05/0.3865, allocations: 120.3 kB / 469.4 MB, free: 20.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.733e-05/0.3865, allocations: 14.27 kB / 469.4 MB, free: 20.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003751/0.3869, allocations: 311.2 kB / 469.7 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002291/0.3872, allocations: 234.1 kB / 470 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3872, allocations: 4 kB / 470 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3872, allocations: 2.906 kB / 470 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008145/0.388, allocations: 0.7583 MB / 470.7 MB, free: 19.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.388, allocations: 0 / 470.7 MB, free: 19.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.3882, allocations: 39.41 kB / 470.8 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.3882, allocations: 3.25 kB / 470.8 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.3882, allocations: 2.875 kB / 470.8 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.3882, allocations: 3.312 kB / 470.8 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3882, allocations: 0 / 470.8 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004375/0.3887, allocations: 0.543 MB / 471.3 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.872e-05/0.3887, allocations: 99.27 kB / 471.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.395e-05/0.3888, allocations: 5.656 kB / 471.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.3889, allocations: 9.266 kB / 471.4 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.443e-05/0.389, allocations: 12.39 kB / 471.4 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.389, allocations: 14.45 kB / 471.4 MB, free: 19.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.952e-05/0.389, allocations: 91.88 kB / 471.5 MB, free: 19.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.389, allocations: 3.75 kB / 471.5 MB, free: 19.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003508/0.3925, allocations: 0.9251 MB / 472.5 MB, free: 18.83 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.005317/0.3979, allocations: 1.417 MB / 473.9 MB, free: 18.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004275/0.3983, allocations: 247.7 kB / 474.1 MB, free: 18.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3983, allocations: 2.734 kB / 474.1 MB, free: 18.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.3985, allocations: 123.6 kB / 474.3 MB, free: 18.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008786/0.3994, allocations: 142.9 kB / 474.4 MB, free: 18.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007102/0.4001, allocations: 0.5627 MB / 475 MB, free: 17.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.4005, allocations: 0.7439 MB / 475.7 MB, free: 17.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.4006, allocations: 38.61 kB / 475.7 MB, free: 17.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.551e-05/0.4007, allocations: 27.28 kB / 475.8 MB, free: 17.08 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4007, allocations: 0.6562 kB / 475.8 MB, free: 17.08 MB / 350.1 MB Notification: Performance of Templates: time 0.03874/0.4394, allocations: 27.44 MB / 0.4914 GB, free: 7.129 MB / 366.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: