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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004874/0.004874, allocations: 104.7 kB / 15.74 MB, free: 6.488 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.001074/0.001074, allocations: 197.5 kB / 16.67 MB, free: 6.375 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.248/1.248, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04312/0.04312, allocations: 9.092 MB / 279 MB, free: 12.07 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.001309/0.001309, allocations: 74.55 kB / 387.5 MB, free: 7.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2083/0.2097, allocations: 48.15 MB / 435.6 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01747/0.2272, allocations: 17.35 MB / 453 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01517/0.2424, allocations: 16.8 MB / 469.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.08e-05/0.2425, allocations: 1.562 kB / 469.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006137/0.2431, allocations: 304.5 kB / 470.1 MB, free: 12.77 MB / 350.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.0133/0.2564, allocations: 6.357 MB / 476.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001157/0.2576, allocations: 0.5985 MB / 477 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001925/0.2578, allocations: 183 kB / 477.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.306e-05/0.2578, allocations: 9.109 kB / 477.2 MB, free: 7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.258, allocations: 83.64 kB / 477.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.335e-05/0.2581, allocations: 59.78 kB / 477.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.064e-05/0.2581, allocations: 0 / 477.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01801/0.2761, allocations: 9.544 MB / 486.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.18e-05/0.2762, allocations: 15.92 kB / 486.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.2763, allocations: 51.75 kB / 487 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009246/0.2855, allocations: 4.007 MB / 491 MB, free: 9.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.2856, allocations: 0 / 491 MB, free: 9.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2856, allocations: 0 / 491 MB, free: 9.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.2856, allocations: 0 / 491 MB, free: 9.215 MB / 366.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.001749/0.2873, allocations: 0.8925 MB / 491.9 MB, free: 8.277 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.2874, allocations: 15.97 kB / 491.9 MB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.2876, allocations: 27.83 kB / 491.9 MB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.2878, allocations: 194.8 kB / 492.1 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.2878, allocations: 8 kB / 492.1 MB, free: 7.996 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.2878, allocations: 4 kB / 492.1 MB, free: 7.992 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.288, allocations: 135.2 kB / 492.3 MB, free: 7.848 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.288, allocations: 0 / 492.3 MB, free: 7.848 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.2881, allocations: 7.938 kB / 492.3 MB, free: 7.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.2881, allocations: 7.938 kB / 492.3 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.2882, allocations: 95.95 kB / 492.4 MB, free: 7.738 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006142/0.2888, allocations: 0.5737 MB / 492.9 MB, free: 7.086 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002355/0.2891, allocations: 125.2 kB / 493.1 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.2892, allocations: 85.64 kB / 493.1 MB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05492/0.3441, allocations: 33.17 MB / 0.514 GB, free: 160 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.3442, allocations: 34.55 kB / 0.514 GB, free: 116 kB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.465e-06/0.3442, allocations: 4 kB / 0.514 GB, free: 112 kB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.00063/0.3449, allocations: 233.8 kB / 0.5142 GB, free: 15.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.3449, allocations: 77.11 kB / 0.5143 GB, free: 15.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.135e-05/0.345, allocations: 121.8 kB / 0.5144 GB, free: 15.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.345, allocations: 25.7 kB / 0.5145 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.102e-05/0.3451, allocations: 96.5 kB / 0.5145 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.92e-05/0.3452, allocations: 70.92 kB / 0.5146 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.142e-05/0.3452, allocations: 33.7 kB / 0.5146 GB, free: 15.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3453, allocations: 330.8 kB / 0.515 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.807e-05/0.3454, allocations: 43.98 kB / 0.515 GB, free: 15.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.292e-05/0.3455, allocations: 73.69 kB / 0.5151 GB, free: 14.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.3457, allocations: 125.8 kB / 0.5152 GB, free: 14.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3457, allocations: 0 / 0.5152 GB, free: 14.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002406/0.3459, allocations: 165.4 kB / 0.5153 GB, free: 14.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.3459, allocations: 8 kB / 0.5154 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.346, allocations: 0 / 0.5154 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.346, allocations: 0 / 0.5154 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.839e-05/0.3461, allocations: 24.48 kB / 0.5154 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.3461, allocations: 4.156 kB / 0.5154 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.885e-05/0.3461, allocations: 11.84 kB / 0.5154 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.3462, allocations: 15.97 kB / 0.5154 GB, free: 14.6 MB / 414.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 8.459e-05/0.3463, allocations: 129.6 kB / 0.5155 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.3463, allocations: 11.91 kB / 0.5155 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004304/0.3468, allocations: 313.6 kB / 0.5158 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002746/0.347, allocations: 241.4 kB / 0.5161 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.3471, allocations: 3.938 kB / 0.5161 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.3471, allocations: 4 kB / 0.5161 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008596/0.3479, allocations: 0.7427 MB / 0.5168 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.348, allocations: 4 kB / 0.5168 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000158/0.3481, allocations: 39.92 kB / 0.5169 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.3481, allocations: 4 kB / 0.5169 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.3481, allocations: 4 kB / 0.5169 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/0.3482, allocations: 4 kB / 0.5169 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3482, allocations: 4 kB / 0.5169 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005199/0.3487, allocations: 0.5297 MB / 0.5174 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-05/0.3488, allocations: 92.89 kB / 0.5175 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.3488, allocations: 11.94 kB / 0.5175 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.3489, allocations: 4 kB / 0.5175 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.912e-05/0.349, allocations: 15.98 kB / 0.5175 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.349, allocations: 16.05 kB / 0.5175 GB, free: 12.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.986e-05/0.349, allocations: 91.22 kB / 0.5176 GB, free: 12.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.349, allocations: 0 / 0.5176 GB, free: 12.24 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00194/0.351, allocations: 0.9291 MB / 0.5185 GB, free: 11.31 MB / 414.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.003752/0.3547, allocations: 1.417 MB / 0.5199 GB, free: 9.883 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003612/0.3551, allocations: 259.2 kB / 0.5201 GB, free: 9.617 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.3551, allocations: 0 / 0.5201 GB, free: 9.617 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.3553, allocations: 119.9 kB / 0.5203 GB, free: 9.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009136/0.3562, allocations: 148.8 kB / 0.5204 GB, free: 9.355 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007757/0.357, allocations: 480.9 kB / 0.5209 GB, free: 8.852 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.3573, allocations: 0.7367 MB / 0.5216 GB, free: 8.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00014/0.3574, allocations: 49.83 kB / 0.5216 GB, free: 8.043 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.195e-05/0.3575, allocations: 23.44 kB / 0.5216 GB, free: 8.02 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3575, allocations: 0 / 0.5216 GB, free: 8.02 MB / 414.1 MB Notification: Performance of Templates: time 0.03521/0.3927, allocations: 27.97 MB / 0.549 GB, free: 12.05 MB / 446.1 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)