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.001049/0.001049, allocations: 107.3 kB / 16.41 MB, free: 6.492 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.001109/0.00111, allocations: 192.2 kB / 17.35 MB, free: 5.738 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.277/1.277, 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.04641/0.04641, allocations: 9.098 MB / 279.7 MB, free: 2.941 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.001424/0.001424, allocations: 73.7 kB / 388.2 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0674/0.06883, allocations: 48.17 MB / 436.3 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01575/0.0846, allocations: 17.35 MB / 453.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01645/0.1011, allocations: 16.8 MB / 470.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.1012, allocations: 0 / 470.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007483/0.1021, allocations: 267.1 kB / 470.7 MB, free: 5.066 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.01373/0.1158, allocations: 6.028 MB / 476.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.1171, allocations: 0.5595 MB / 477.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.1173, allocations: 187 kB / 477.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.392e-05/0.1174, allocations: 5.125 kB / 477.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.1175, allocations: 87.64 kB / 477.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.1176, allocations: 51.77 kB / 477.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.43e-05/0.1177, allocations: 4 kB / 477.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01455/0.1322, allocations: 9.541 MB / 487.2 MB, free: 4.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.166e-05/0.1323, allocations: 11.92 kB / 487.2 MB, free: 4.559 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.49e-05/0.1323, allocations: 59.67 kB / 487.3 MB, free: 4.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007167/0.1395, allocations: 4.011 MB / 491.3 MB, free: 492 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1395, allocations: 0 / 491.3 MB, free: 492 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1396, allocations: 0 / 491.3 MB, free: 492 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1396, allocations: 4 kB / 491.3 MB, free: 488 kB / 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.001693/0.1413, allocations: 0.8889 MB / 492.2 MB, free: 15.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1413, allocations: 8.031 kB / 492.2 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.1415, allocations: 27.83 kB / 492.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.1417, allocations: 190.9 kB / 492.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.1417, allocations: 11.94 kB / 492.4 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.1418, allocations: 4 kB / 492.4 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.1419, allocations: 134.4 kB / 492.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.142, allocations: 4 kB / 492.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.142, allocations: 0 / 492.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.142, allocations: 3.938 kB / 492.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001274/0.1421, allocations: 103.9 kB / 492.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005939/0.1427, allocations: 0.5659 MB / 493.2 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.143, allocations: 133.1 kB / 493.3 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.1431, allocations: 81.7 kB / 493.4 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05986/0.203, allocations: 33.17 MB / 0.5142 GB, free: 7.438 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.203, allocations: 34.56 kB / 0.5143 GB, free: 7.395 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 3.025e-06/0.203, allocations: 0 / 0.5143 GB, free: 7.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006138/0.2037, allocations: 233.9 kB / 0.5145 GB, free: 7.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.2037, allocations: 81.11 kB / 0.5146 GB, free: 7.062 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.222e-05/0.2038, allocations: 121.8 kB / 0.5147 GB, free: 6.934 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.2038, allocations: 25.7 kB / 0.5147 GB, free: 6.902 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.245e-05/0.2039, allocations: 92.56 kB / 0.5148 GB, free: 6.805 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.204e-05/0.2039, allocations: 82.78 kB / 0.5149 GB, free: 6.723 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.593e-05/0.204, allocations: 37.7 kB / 0.5149 GB, free: 6.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.567e-05/0.2041, allocations: 322.8 kB / 0.5152 GB, free: 6.355 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.252e-05/0.2042, allocations: 47.98 kB / 0.5153 GB, free: 6.309 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.898e-05/0.2043, allocations: 69.62 kB / 0.5153 GB, free: 6.234 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.2045, allocations: 125.6 kB / 0.5155 GB, free: 6.109 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2045, allocations: 4 kB / 0.5155 GB, free: 6.105 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002421/0.2047, allocations: 161.4 kB / 0.5156 GB, free: 5.941 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.2047, allocations: 4 kB / 0.5156 GB, free: 5.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2047, allocations: 0 / 0.5156 GB, free: 5.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.2048, allocations: 0 / 0.5156 GB, free: 5.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.437e-05/0.2049, allocations: 31.97 kB / 0.5157 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.2049, allocations: 0 / 0.5157 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.416e-05/0.2049, allocations: 15.84 kB / 0.5157 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.205, allocations: 4 kB / 0.5157 GB, free: 5.887 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.863e-05/0.2051, allocations: 129.7 kB / 0.5158 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.535e-05/0.2051, allocations: 7.906 kB / 0.5158 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004343/0.2056, allocations: 313.5 kB / 0.5161 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.2056, allocations: 7.984 kB / 0.5161 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2056, allocations: 0 / 0.5161 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.861e-05/0.2056, allocations: 96.86 kB / 0.5162 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.2057, allocations: 8 kB / 0.5162 GB, free: 5.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.2058, allocations: 4.062 kB / 0.5162 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.047e-05/0.2058, allocations: 15.98 kB / 0.5162 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004532/0.2063, allocations: 431.9 kB / 0.5166 GB, free: 4.859 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005502/0.2069, allocations: 0.6307 MB / 0.5173 GB, free: 4.211 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001399/0.207, allocations: 131.9 kB / 0.5174 GB, free: 4.082 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.736e-05/0.2071, allocations: 95.2 kB / 0.5175 GB, free: 3.988 MB / 414.1 MB Notification: Performance of Backend: time 4.4e-07/0.2071, allocations: 3.938 kB / 0.5175 GB, free: 3.984 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004326/0.2114, allocations: 1.668 MB / 0.5191 GB, free: 2.297 MB / 414.1 MB Notification: Performance of SimCode: time 0.0009144/0.2123, allocations: 0.9714 MB / 0.5201 GB, free: 1.266 MB / 414.1 MB Notification: Performance of Templates: time 0.1832/0.3956, allocations: 27.99 MB / 0.5474 GB, free: 80.7 MB / 414.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)