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.001096/0.001096, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001131/0.001131, allocations: 190.4 kB / 16.25 MB, free: 6.625 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.434/1.434, allocations: 205.1 MB / 222.1 MB, free: 4.934 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04496/0.04496, allocations: 9.077 MB / 278.5 MB, free: 12.57 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.001502/0.001502, allocations: 67.84 kB / 337.6 MB, free: 25.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08309/0.0846, allocations: 48.16 MB / 385.8 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01991/0.1045, allocations: 17.41 MB / 403.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01649/0.1211, allocations: 16.89 MB / 420.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.1213, allocations: 0 / 420.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007445/0.1221, allocations: 267.3 kB / 420.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01453/0.1366, allocations: 5.733 MB / 426.1 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001534/0.1382, allocations: 0.5017 MB / 426.6 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002784/0.1385, allocations: 211 kB / 426.8 MB, free: 364 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.97e-05/0.1385, allocations: 5.125 kB / 426.8 MB, free: 356 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.1387, allocations: 91.53 kB / 426.9 MB, free: 264 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/0.1388, allocations: 67.7 kB / 427 MB, free: 196 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.1388, allocations: 4 kB / 427 MB, free: 192 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1772/0.316, allocations: 10.27 MB / 437.2 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.402e-05/0.3161, allocations: 9.031 kB / 437.2 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.3162, allocations: 61.05 kB / 437.3 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009895/0.3261, allocations: 4.149 MB / 441.4 MB, free: 18.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.3262, allocations: 2.625 kB / 441.4 MB, free: 18.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3262, allocations: 0 / 441.4 MB, free: 18.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.3262, allocations: 1.219 kB / 441.4 MB, free: 18.52 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.002021/0.3282, allocations: 0.8871 MB / 442.3 MB, free: 17.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.3283, allocations: 12 kB / 442.3 MB, free: 17.85 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.638e-05/0.3283, allocations: 41.23 kB / 442.4 MB, free: 17.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.3285, allocations: 26.64 kB / 442.4 MB, free: 17.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.3287, allocations: 195.8 kB / 442.6 MB, free: 17.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.3287, allocations: 8.094 kB / 442.6 MB, free: 17.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.097e-05/0.3287, allocations: 5.25 kB / 442.6 MB, free: 17.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.3289, allocations: 135.2 kB / 442.7 MB, free: 17.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.3289, allocations: 0 / 442.7 MB, free: 17.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.3289, allocations: 0 / 442.7 MB, free: 17.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.329, allocations: 10.53 kB / 442.8 MB, free: 17.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.3291, allocations: 98.33 kB / 442.9 MB, free: 17.51 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005271/0.3296, allocations: 0.5742 MB / 443.4 MB, free: 16.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.3298, allocations: 127 kB / 443.6 MB, free: 16.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.222e-05/0.3299, allocations: 82.86 kB / 443.6 MB, free: 16.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05722/0.3872, allocations: 33.16 MB / 476.8 MB, free: 17.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.3872, allocations: 41.78 kB / 476.8 MB, free: 17.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.394e-06/0.3872, allocations: 3.375 kB / 476.8 MB, free: 17.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005874/0.3878, allocations: 228.1 kB / 477.1 MB, free: 16.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.3879, allocations: 83.73 kB / 477.1 MB, free: 16.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.332e-05/0.388, allocations: 117.5 kB / 477.3 MB, free: 16.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.388, allocations: 29.52 kB / 477.3 MB, free: 16.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.108e-05/0.3881, allocations: 96.5 kB / 477.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.208e-05/0.3881, allocations: 74.52 kB / 477.5 MB, free: 16.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.582e-05/0.3882, allocations: 40.95 kB / 477.5 MB, free: 16.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.3883, allocations: 318.6 kB / 477.8 MB, free: 16.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.114e-05/0.3883, allocations: 48.28 kB / 477.9 MB, free: 16.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.638e-05/0.3884, allocations: 65.31 kB / 477.9 MB, free: 16.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.3886, allocations: 123.9 kB / 478 MB, free: 16.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3886, allocations: 4 kB / 478 MB, free: 16.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001971/0.3888, allocations: 171.9 kB / 478.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.3888, allocations: 4 kB / 478.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.3888, allocations: 0 / 478.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3888, allocations: 2.625 kB / 478.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.406e-05/0.3889, allocations: 25.52 kB / 478.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.3889, allocations: 7.781 kB / 478.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.929e-05/0.389, allocations: 11.84 kB / 478.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.389, allocations: 10.25 kB / 478.3 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 9.592e-05/0.3891, allocations: 117.8 kB / 478.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.82e-05/0.3892, allocations: 7.906 kB / 478.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000386/0.3896, allocations: 317.2 kB / 478.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000221/0.3898, allocations: 238.2 kB / 478.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3898, allocations: 3.938 kB / 478.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3898, allocations: 9.484 kB / 478.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008088/0.3907, allocations: 0.7541 MB / 479.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3907, allocations: 0 / 479.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.3908, allocations: 39.08 kB / 479.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3908, allocations: 0 / 479.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.3909, allocations: 7.375 kB / 479.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3909, allocations: 0 / 479.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3909, allocations: 4 kB / 479.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005054/0.3914, allocations: 0.5277 MB / 480.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.168e-05/0.3915, allocations: 100.9 kB / 480.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.662e-05/0.3915, allocations: 3.875 kB / 480.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.3916, allocations: 7.938 kB / 480.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.366e-05/0.3917, allocations: 16.77 kB / 480.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.3917, allocations: 4 kB / 480.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.861e-05/0.3918, allocations: 102.5 kB / 480.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3918, allocations: 0 / 480.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003131/0.3949, allocations: 0.9292 MB / 481.4 MB, free: 13.07 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.005026/0.3999, allocations: 2.436 MB / 483.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004056/0.4004, allocations: 255 kB / 484.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4004, allocations: 0 / 484.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.4005, allocations: 123.5 kB / 484.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009158/0.4014, allocations: 150.8 kB / 484.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.4046, allocations: 2.485 MB / 486.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.4049, allocations: 0.7289 MB / 487.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001659/0.4051, allocations: 47.94 kB / 487.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.218e-05/0.4052, allocations: 63.42 kB / 487.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4052, allocations: 0 / 487.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05595/0.4611, allocations: 30.59 MB / 0.5062 GB, free: 8.562 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/0.4613, allocations: 224.2 kB / 0.5064 GB, free: 8.305 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.149/3.61, allocations: 0 / 0.5064 GB, free: 8.305 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)