Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.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.CheckDerivativesCarbondioxide,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001127/0.001127, allocations: 197 kB / 16.14 MB, free: 6.711 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.302/1.302, allocations: 205.1 MB / 222 MB, free: 4.941 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04448/0.04448, allocations: 9.071 MB / 278.4 MB, free: 12.64 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.001189/0.001189, allocations: 59.92 kB / 337.3 MB, free: 25.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07054/0.07174, allocations: 48.17 MB / 385.5 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01687/0.08865, allocations: 17.67 MB / 403.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01473/0.1034, allocations: 17.24 MB / 420.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.698e-05/0.1035, allocations: 3.938 kB / 420.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000642/0.1042, allocations: 251.6 kB / 420.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01284/0.1171, allocations: 5.458 MB / 426.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.1183, allocations: 489.7 kB / 426.6 MB, free: 476 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000201/0.1185, allocations: 199 kB / 426.8 MB, free: 276 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.316e-05/0.1186, allocations: 9.109 kB / 426.8 MB, free: 264 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.1187, allocations: 79.61 kB / 426.9 MB, free: 184 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.059e-05/0.1188, allocations: 71.69 kB / 426.9 MB, free: 112 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.1188, allocations: 4 kB / 427 MB, free: 108 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1637/0.2825, allocations: 9.645 MB / 436.6 MB, free: 18.45 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.848e-05/0.2826, allocations: 17.81 kB / 436.6 MB, free: 18.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.2827, allocations: 55.92 kB / 436.7 MB, free: 18.45 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01116/0.2939, allocations: 4.001 MB / 440.7 MB, free: 18.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.2939, allocations: 1.281 kB / 440.7 MB, free: 18.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2939, allocations: 0 / 440.7 MB, free: 18.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.2939, allocations: 1.719 kB / 440.7 MB, free: 18.21 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.002221/0.2962, allocations: 0.8918 MB / 441.6 MB, free: 17.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.2962, allocations: 8.625 kB / 441.6 MB, free: 17.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.2964, allocations: 25.33 kB / 441.6 MB, free: 17.53 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.2966, allocations: 204.8 kB / 441.8 MB, free: 17.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.2966, allocations: 3.547 kB / 441.8 MB, free: 17.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.2967, allocations: 8.312 kB / 441.8 MB, free: 17.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.2969, allocations: 132.6 kB / 441.9 MB, free: 17.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2969, allocations: 0.625 kB / 441.9 MB, free: 17.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.2969, allocations: 1.406 kB / 441.9 MB, free: 17.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.2969, allocations: 5.781 kB / 441.9 MB, free: 17.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001091/0.297, allocations: 96.8 kB / 442 MB, free: 17.24 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004987/0.2975, allocations: 0.5745 MB / 442.6 MB, free: 16.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.2978, allocations: 130.2 kB / 442.7 MB, free: 16.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.115e-05/0.2979, allocations: 85.41 kB / 442.8 MB, free: 16.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0568/0.3547, allocations: 33.17 MB / 476 MB, free: 16.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.3547, allocations: 34.44 kB / 476 MB, free: 16.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 3.577e-06/0.3548, allocations: 0 / 476 MB, free: 16.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006595/0.3554, allocations: 231.1 kB / 476.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.3555, allocations: 84.33 kB / 476.3 MB, free: 16.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.3556, allocations: 128.7 kB / 476.5 MB, free: 16.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.3556, allocations: 29.7 kB / 476.5 MB, free: 16.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.511e-05/0.3557, allocations: 87.98 kB / 476.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.674e-05/0.3557, allocations: 79.98 kB / 476.7 MB, free: 16.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/0.3558, allocations: 34.98 kB / 476.7 MB, free: 16.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3559, allocations: 321.9 kB / 477 MB, free: 16.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.439e-05/0.356, allocations: 44.86 kB / 477 MB, free: 16.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.759e-05/0.3561, allocations: 75.91 kB / 477.1 MB, free: 16.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001418/0.3562, allocations: 123.9 kB / 477.2 MB, free: 16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3562, allocations: 0 / 477.2 MB, free: 16 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002319/0.3564, allocations: 169.5 kB / 477.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.3565, allocations: 14.33 kB / 477.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3565, allocations: 0 / 477.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.3565, allocations: 0 / 477.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.613e-05/0.3566, allocations: 18.06 kB / 477.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.3566, allocations: 0 / 477.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.629e-05/0.3567, allocations: 18.09 kB / 477.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.3567, allocations: 4.812 kB / 477.5 MB, free: 15.84 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.3568, allocations: 126.9 kB / 477.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.587e-05/0.3569, allocations: 14.22 kB / 477.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004204/0.3573, allocations: 311.7 kB / 477.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002444/0.3576, allocations: 239.6 kB / 478.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3576, allocations: 8 kB / 478.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3576, allocations: 3.938 kB / 478.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008302/0.3584, allocations: 0.755 MB / 478.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3585, allocations: 0 / 478.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.3586, allocations: 42.3 kB / 478.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.3586, allocations: 0 / 478.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.3587, allocations: 7.938 kB / 478.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3587, allocations: 0 / 478.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3587, allocations: 0 / 478.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005532/0.3592, allocations: 0.5281 MB / 479.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.124e-05/0.3593, allocations: 95.98 kB / 479.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.689e-05/0.3594, allocations: 7.562 kB / 479.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.3595, allocations: 3.5 kB / 479.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.672e-05/0.3595, allocations: 17.84 kB / 479.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.3595, allocations: 12.94 kB / 479.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.298e-05/0.3596, allocations: 95.27 kB / 479.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.242e-06/0.3596, allocations: 4 kB / 479.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003367/0.363, allocations: 0.9253 MB / 480.6 MB, free: 13.06 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 (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.005787/0.3688, allocations: 1.471 MB / 482.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000459/0.3693, allocations: 251 kB / 482.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3693, allocations: 0 / 482.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.3695, allocations: 123.7 kB / 482.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.3706, allocations: 140.2 kB / 482.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009543/0.3715, allocations: 0.5372 MB / 483.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.3718, allocations: 0.7358 MB / 483.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001743/0.372, allocations: 41.94 kB / 483.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.259e-05/0.3721, allocations: 27.44 kB / 483.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3721, allocations: 4 kB / 484 MB, free: 10.07 MB / 350.1 MB Notification: Performance of Templates: time 0.03997/0.4121, allocations: 27.8 MB / 0.4998 GB, free: 14.43 MB / 382.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1)