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.001558/0.001558, allocations: 112.7 kB / 16.37 MB, free: 6 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.001542/0.001542, allocations: 196 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.746/1.746, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04837/0.04837, allocations: 9.092 MB / 279.6 MB, free: 2.98 MB / 222.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.001534/0.001534, allocations: 68.36 kB / 339.5 MB, free: 7.008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4189/0.4205, allocations: 48.15 MB / 387.6 MB, free: 51.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.0263/0.4469, allocations: 17.41 MB / 405 MB, free: 38.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0188/0.4658, allocations: 16.92 MB / 422 MB, free: 24.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.466, allocations: 0 / 422 MB, free: 24.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.4672, allocations: 285.8 kB / 422.2 MB, free: 24.64 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.02407/0.4913, allocations: 6.13 MB / 428.4 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002254/0.4935, allocations: 0.5674 MB / 428.9 MB, free: 18.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002534/0.4938, allocations: 199 kB / 429.1 MB, free: 17.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.597e-05/0.4939, allocations: 9.109 kB / 429.1 MB, free: 17.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.4941, allocations: 83.66 kB / 429.2 MB, free: 17.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.4942, allocations: 67.69 kB / 429.3 MB, free: 17.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.4942, allocations: 4 kB / 429.3 MB, free: 17.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02041/0.5146, allocations: 9.923 MB / 439.2 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.099e-05/0.5147, allocations: 19.86 kB / 439.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.5149, allocations: 51.73 kB / 439.3 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01564/0.5305, allocations: 4.019 MB / 443.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.113e-05/0.5306, allocations: 0 / 443.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.649e-06/0.5306, allocations: 4 kB / 443.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.5306, allocations: 0 / 443.3 MB, free: 3.684 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.002286/0.5329, allocations: 0.8896 MB / 444.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.533, allocations: 8.031 kB / 444.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.5332, allocations: 27.83 kB / 444.2 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.5334, allocations: 202.8 kB / 444.4 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.5335, allocations: 0 / 444.4 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/0.5335, allocations: 8 kB / 444.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.5337, allocations: 131.4 kB / 444.6 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.5337, allocations: 3.984 kB / 444.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.5338, allocations: 0 / 444.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.5338, allocations: 11.94 kB / 444.6 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001253/0.5339, allocations: 102.4 kB / 444.7 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006372/0.5346, allocations: 0.5659 MB / 445.2 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/0.5348, allocations: 125.1 kB / 445.4 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.179e-05/0.5349, allocations: 81.7 kB / 445.4 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06219/0.5971, allocations: 33.18 MB / 478.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.898e-05/0.5972, allocations: 34.56 kB / 478.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 3.497e-06/0.5972, allocations: 0 / 478.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008366/0.5981, allocations: 232 kB / 478.9 MB, free: 10.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.017e-05/0.5982, allocations: 85.09 kB / 479 MB, free: 10.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.5983, allocations: 125.7 kB / 479.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.5983, allocations: 29.7 kB / 479.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.543e-05/0.5984, allocations: 88.58 kB / 479.2 MB, free: 9.992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.452e-05/0.5985, allocations: 74.84 kB / 479.3 MB, free: 9.918 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.585e-05/0.5986, allocations: 33.7 kB / 479.3 MB, free: 9.879 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5987, allocations: 330.8 kB / 479.6 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.952e-05/0.5988, allocations: 39.98 kB / 479.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.557e-05/0.5989, allocations: 72.77 kB / 479.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.5991, allocations: 120.3 kB / 479.9 MB, free: 9.312 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5991, allocations: 0 / 479.9 MB, free: 9.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002685/0.5994, allocations: 172 kB / 480 MB, free: 9.141 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.5994, allocations: 8 kB / 480 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.5994, allocations: 0 / 480 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.5995, allocations: 3.984 kB / 480 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.515e-05/0.5996, allocations: 19.94 kB / 480.1 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.5996, allocations: 4 kB / 480.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.114e-05/0.5997, allocations: 11.84 kB / 480.1 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.5997, allocations: 8 kB / 480.1 MB, free: 9.086 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001268/0.5998, allocations: 125.8 kB / 480.2 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.918e-05/0.5999, allocations: 15.89 kB / 480.2 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004935/0.6004, allocations: 311.3 kB / 480.5 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003048/0.6007, allocations: 249.5 kB / 480.8 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.6007, allocations: 4 kB / 480.8 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.6008, allocations: 0 / 480.8 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009892/0.6017, allocations: 0.7522 MB / 481.5 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.6018, allocations: 0 / 481.5 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.6019, allocations: 35.98 kB / 481.6 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.6019, allocations: 4 kB / 481.6 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.602, allocations: 8 kB / 481.6 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.602, allocations: 4 kB / 481.6 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.602, allocations: 0 / 481.6 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006547/0.6027, allocations: 0.5311 MB / 482.1 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.879e-05/0.6027, allocations: 96.83 kB / 482.2 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.6028, allocations: 8 kB / 482.2 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.6029, allocations: 0 / 482.2 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.266e-05/0.603, allocations: 25.84 kB / 482.2 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.603, allocations: 4 kB / 482.2 MB, free: 6.828 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.999e-05/0.603, allocations: 99.27 kB / 482.3 MB, free: 6.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6031, allocations: 0 / 482.3 MB, free: 6.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003283/0.6063, allocations: 0.9174 MB / 483.3 MB, free: 5.812 MB / 366.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 (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.003939/0.6103, allocations: 1.424 MB / 484.7 MB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004811/0.6108, allocations: 255.2 kB / 484.9 MB, free: 4.133 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.6108, allocations: 0 / 484.9 MB, free: 4.133 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.611, allocations: 123.2 kB / 485 MB, free: 4.016 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.612, allocations: 157.9 kB / 485.2 MB, free: 3.867 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009528/0.613, allocations: 467.3 kB / 485.7 MB, free: 3.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.6134, allocations: 0.7406 MB / 486.4 MB, free: 2.621 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001436/0.6135, allocations: 44.47 kB / 486.4 MB, free: 2.578 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.901e-05/0.6136, allocations: 23.44 kB / 486.5 MB, free: 2.559 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.6136, allocations: 0 / 486.5 MB, free: 2.559 MB / 366.1 MB Notification: Performance of Templates: time 0.04282/0.6564, allocations: 27.92 MB / 0.5023 GB, free: 6.695 MB / 398.1 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 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1)