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: "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.611/1.611, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04906/0.04906, allocations: 9.105 MB / 278.9 MB, free: 12.15 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.001678/0.001678, allocations: 71.89 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09593/0.09763, allocations: 48.16 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.02269/0.1204, allocations: 17.42 MB / 403.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0167/0.1371, allocations: 16.92 MB / 420.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.73e-05/0.1373, allocations: 0 / 420.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007822/0.1381, allocations: 283.1 kB / 420.9 MB, free: 6.375 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.01687/0.155, allocations: 6.319 MB / 427.2 MB, free: 52 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2129/0.3679, allocations: 0.556 MB / 427.8 MB, free: 17.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.3682, allocations: 203.7 kB / 428 MB, free: 17.94 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.613e-05/0.3683, allocations: 14.45 kB / 428 MB, free: 17.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.3684, allocations: 92.45 kB / 428.1 MB, free: 17.94 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.3685, allocations: 54.84 kB / 428.1 MB, free: 17.94 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.3685, allocations: 2.406 kB / 428.1 MB, free: 17.94 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01988/0.3884, allocations: 10.1 MB / 438.2 MB, free: 17.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.651e-05/0.3885, allocations: 18.39 kB / 438.3 MB, free: 17.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.3886, allocations: 55.56 kB / 438.3 MB, free: 17.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01287/0.4015, allocations: 4.143 MB / 442.5 MB, free: 17.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.4015, allocations: 0 / 442.5 MB, free: 17.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4015, allocations: 0 / 442.5 MB, free: 17.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.4016, allocations: 1.281 kB / 442.5 MB, free: 17.82 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.00316/0.4047, allocations: 0.8824 MB / 443.3 MB, free: 17.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.4048, allocations: 10.62 kB / 443.4 MB, free: 17.2 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.008e-05/0.4048, allocations: 43.44 kB / 443.4 MB, free: 17.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.405, allocations: 26.7 kB / 443.4 MB, free: 17.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/0.4052, allocations: 205.4 kB / 443.6 MB, free: 16.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.4053, allocations: 11.03 kB / 443.6 MB, free: 16.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.343e-05/0.4053, allocations: 6.781 kB / 443.6 MB, free: 16.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/0.4055, allocations: 134 kB / 443.8 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.4055, allocations: 0 / 443.8 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.4055, allocations: 0 / 443.8 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.4055, allocations: 8 kB / 443.8 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.4057, allocations: 101 kB / 443.9 MB, free: 16.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005529/0.4062, allocations: 0.5711 MB / 444.4 MB, free: 16.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000227/0.4065, allocations: 127.3 kB / 444.6 MB, free: 16.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.221e-05/0.4066, allocations: 79.92 kB / 444.6 MB, free: 16.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05886/0.4654, allocations: 33.17 MB / 477.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.477e-05/0.4655, allocations: 42.16 kB / 477.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 5.07e-06/0.4655, allocations: 0 / 477.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006997/0.4662, allocations: 236.7 kB / 478.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.4663, allocations: 77.11 kB / 478.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.812e-05/0.4664, allocations: 121.7 kB / 478.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.4664, allocations: 29.52 kB / 478.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.28e-05/0.4665, allocations: 84.56 kB / 478.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.094e-05/0.4666, allocations: 82.97 kB / 478.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.459e-05/0.4666, allocations: 37.27 kB / 478.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.4668, allocations: 326.1 kB / 478.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.368e-05/0.4668, allocations: 43.55 kB / 478.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.817e-05/0.4669, allocations: 64.31 kB / 478.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.4671, allocations: 123.7 kB / 479.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4671, allocations: 0.75 kB / 479.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002475/0.4673, allocations: 172.4 kB / 479.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.4674, allocations: 4 kB / 479.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.4674, allocations: 8 kB / 479.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.4674, allocations: 0 / 479.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.058e-05/0.4675, allocations: 16 kB / 479.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.4675, allocations: 7.922 kB / 479.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.013e-05/0.4676, allocations: 11.84 kB / 479.3 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.4676, allocations: 13.59 kB / 479.3 MB, free: 14.63 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.00011/0.4677, allocations: 119.6 kB / 479.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.978e-05/0.4678, allocations: 7.906 kB / 479.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004925/0.4683, allocations: 311.5 kB / 479.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002914/0.4686, allocations: 248.1 kB / 480 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.4686, allocations: 3.938 kB / 480 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.4687, allocations: 7.984 kB / 480 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.4698, allocations: 0.7437 MB / 480.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4698, allocations: 4 kB / 480.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001849/0.47, allocations: 41.92 kB / 480.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/0.47, allocations: 0 / 480.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.4701, allocations: 8 kB / 480.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.4701, allocations: 0 / 480.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4701, allocations: 0 / 480.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006919/0.4708, allocations: 0.5216 MB / 481.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.4709, allocations: 99.72 kB / 481.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.4709, allocations: 12.06 kB / 481.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.4711, allocations: 4 kB / 481.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.4711, allocations: 15.92 kB / 481.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.4712, allocations: 12 kB / 481.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.61e-05/0.4712, allocations: 91.27 kB / 481.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4712, allocations: 0 / 481.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003833/0.4751, allocations: 0.9291 MB / 482.4 MB, free: 11.61 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.007733/0.4828, allocations: 2.444 MB / 484.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005711/0.4834, allocations: 270.8 kB / 485.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4834, allocations: 0 / 485.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001918/0.4836, allocations: 122.8 kB / 485.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.4848, allocations: 152.1 kB / 485.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00529/0.4901, allocations: 2.413 MB / 487.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.4905, allocations: 0.7328 MB / 488.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002003/0.4907, allocations: 44.2 kB / 488.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.4909, allocations: 63.42 kB / 488.7 MB, free: 5.457 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4909, allocations: 0 / 488.7 MB, free: 5.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07475/0.5656, allocations: 30.69 MB / 0.5072 GB, free: 6.828 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.857/10.42, allocations: 11.81 kB / 0.5072 GB, free: 6.816 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1)