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.0008143/0.0008143, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008065/0.0008065, allocations: 172.7 kB / 15.95 MB, free: 208 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.335/1.335, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04324/0.04324, allocations: 9.073 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.0004625/0.0004625, allocations: 20 kB / 339.1 MB, free: 25.99 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07735/0.07782, allocations: 49.19 MB / 388.3 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01649/0.09434, allocations: 16.1 MB / 404.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01417/0.1086, allocations: 15.83 MB / 420.2 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.1087, allocations: 3.938 kB / 420.2 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006518/0.1094, allocations: 235 kB / 420.5 MB, free: 8.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01352/0.1229, allocations: 4.986 MB / 425.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.1241, allocations: 441.8 kB / 425.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002113/0.1243, allocations: 195 kB / 426.1 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.04e-05/0.1244, allocations: 9.406 kB / 426.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.1245, allocations: 79.59 kB / 426.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.77e-05/0.1246, allocations: 59.77 kB / 426.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.1247, allocations: 11.92 kB / 426.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1941/0.3188, allocations: 8.15 MB / 434.4 MB, free: 19.87 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.572e-05/0.3189, allocations: 13.05 kB / 434.4 MB, free: 19.87 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.758e-05/0.3189, allocations: 47.67 kB / 434.5 MB, free: 19.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005799/0.3248, allocations: 2.341 MB / 436.8 MB, free: 19.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.3248, allocations: 0.7812 kB / 436.8 MB, free: 19.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3248, allocations: 4.391 kB / 436.8 MB, free: 19.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.3248, allocations: 0.625 kB / 436.8 MB, free: 19.75 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.002421/0.3272, allocations: 0.8705 MB / 437.7 MB, free: 19.13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.3273, allocations: 9.625 kB / 437.7 MB, free: 19.13 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/0.3275, allocations: 28.61 kB / 437.7 MB, free: 19.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.3277, allocations: 201.6 kB / 437.9 MB, free: 18.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.3277, allocations: 4 kB / 437.9 MB, free: 18.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.3277, allocations: 10 kB / 437.9 MB, free: 18.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.3279, allocations: 126.5 kB / 438 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.3279, allocations: 0 / 438 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.328, allocations: 6.031 kB / 438 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.328, allocations: 6.094 kB / 438.1 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001429/0.3281, allocations: 93.44 kB / 438.1 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005412/0.3287, allocations: 0.5772 MB / 438.7 MB, free: 18.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.3289, allocations: 125.5 kB / 438.8 MB, free: 18.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.333e-05/0.329, allocations: 81.56 kB / 438.9 MB, free: 18.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04907/0.3781, allocations: 32.35 MB / 471.3 MB, free: 20.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.3782, allocations: 41.25 kB / 471.3 MB, free: 20.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.865e-06/0.3782, allocations: 2.25 kB / 471.3 MB, free: 20.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006371/0.3788, allocations: 226 kB / 471.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.3789, allocations: 86.77 kB / 471.6 MB, free: 20.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.827e-05/0.379, allocations: 122.2 kB / 471.7 MB, free: 20.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.379, allocations: 28.83 kB / 471.8 MB, free: 20.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.72e-05/0.3791, allocations: 87.89 kB / 471.9 MB, free: 20.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.088e-05/0.3791, allocations: 85.25 kB / 471.9 MB, free: 20.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-06/0.3791, allocations: 7.938 kB / 471.9 MB, free: 20.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.77e-05/0.3792, allocations: 320.9 kB / 472.3 MB, free: 19.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.804e-05/0.3793, allocations: 43.55 kB / 472.3 MB, free: 19.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.569e-05/0.3794, allocations: 63.02 kB / 472.4 MB, free: 19.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.164e-05/0.3794, allocations: 57.39 kB / 472.4 MB, free: 19.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3795, allocations: 0 / 472.4 MB, free: 19.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001923/0.3797, allocations: 167.1 kB / 472.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.3797, allocations: 7.781 kB / 472.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3797, allocations: 4 kB / 472.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.3797, allocations: 2.688 kB / 472.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.132e-05/0.3798, allocations: 25.25 kB / 472.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.3798, allocations: 0 / 472.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.148e-05/0.3799, allocations: 7.438 kB / 472.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.3799, allocations: 14.11 kB / 472.6 MB, free: 19.65 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 8.033e-05/0.38, allocations: 117.2 kB / 472.8 MB, free: 19.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.3801, allocations: 15.33 kB / 472.8 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003701/0.3804, allocations: 318.9 kB / 473.1 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002281/0.3807, allocations: 234.3 kB / 473.3 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3807, allocations: 0 / 473.3 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.3807, allocations: 5.922 kB / 473.3 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007736/0.3815, allocations: 0.7537 MB / 474.1 MB, free: 18.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3815, allocations: 4 kB / 474.1 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.3816, allocations: 40.27 kB / 474.1 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.3816, allocations: 0 / 474.1 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.3817, allocations: 7.25 kB / 474.1 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3817, allocations: 2.344 kB / 474.1 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3817, allocations: 0 / 474.1 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000464/0.3822, allocations: 0.5246 MB / 474.6 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.661e-05/0.3822, allocations: 97.53 kB / 474.7 MB, free: 18.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.3822, allocations: 9.828 kB / 474.7 MB, free: 18.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.3824, allocations: 6.125 kB / 474.8 MB, free: 18.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.612e-05/0.3824, allocations: 20.84 kB / 474.8 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.3824, allocations: 7.125 kB / 474.8 MB, free: 18.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.672e-05/0.3825, allocations: 93.27 kB / 474.9 MB, free: 18.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3825, allocations: 0 / 474.9 MB, free: 18.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003781/0.3863, allocations: 0.9311 MB / 475.8 MB, free: 18.24 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.004334/0.3906, allocations: 1.424 MB / 477.2 MB, free: 17.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00041/0.391, allocations: 236.3 kB / 477.5 MB, free: 17.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.3911, allocations: 0 / 477.5 MB, free: 17.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.3912, allocations: 135.6 kB / 477.6 MB, free: 17.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009421/0.3921, allocations: 139.5 kB / 477.7 MB, free: 17.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007608/0.3929, allocations: 0.5611 MB / 478.3 MB, free: 17.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.3932, allocations: 0.7328 MB / 479 MB, free: 16.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001325/0.3933, allocations: 52.41 kB / 479.1 MB, free: 16.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.386e-05/0.3934, allocations: 27.75 kB / 479.1 MB, free: 16.49 MB / 350.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3934, allocations: 0 / 479.1 MB, free: 16.49 MB / 350.1 MB Notification: Performance of Templates: time 0.0368/0.4302, allocations: 27.45 MB / 0.4947 GB, free: 5.512 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: