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.0008981/0.0008981, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.0009177/0.0009176, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.4 MB / 222.1 MB, free: 5.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04153/0.04153, allocations: 9.048 MB / 279.4 MB, free: 12.16 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.0004815/0.0004814, allocations: 12 kB / 339.2 MB, free: 25.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08103/0.08152, allocations: 49.18 MB / 388.4 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01415/0.0957, allocations: 14.55 MB / 402.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01176/0.1075, allocations: 13.26 MB / 416.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.725e-05/0.1076, allocations: 4 kB / 416.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005983/0.1082, allocations: 239.2 kB / 416.4 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007118/0.1153, allocations: 3.38 MB / 419.8 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005178/0.1205, allocations: 2.28 MB / 422.1 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001891/0.1207, allocations: 139.7 kB / 422.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.704e-05/0.1208, allocations: 9.062 kB / 422.2 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.1209, allocations: 91.69 kB / 422.3 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.121, allocations: 63.77 kB / 422.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.878e-06/0.121, allocations: 0 / 422.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1616/0.2827, allocations: 9.583 MB / 432 MB, free: 18.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.011e-05/0.2828, allocations: 15.44 kB / 432 MB, free: 18.99 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.038e-05/0.2828, allocations: 45.11 kB / 432 MB, free: 18.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005815/0.2887, allocations: 2.261 MB / 434.3 MB, free: 18.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2887, allocations: 7 kB / 434.3 MB, free: 18.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.2887, allocations: 1.969 kB / 434.3 MB, free: 18.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.2887, allocations: 0 / 434.3 MB, free: 18.86 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.002537/0.2913, allocations: 0.8627 MB / 435.2 MB, free: 18.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2913, allocations: 12.38 kB / 435.2 MB, free: 18.24 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.528e-05/0.2913, allocations: 39.92 kB / 435.2 MB, free: 18.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000179/0.2915, allocations: 24.89 kB / 435.2 MB, free: 18.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.2917, allocations: 197.7 kB / 435.4 MB, free: 18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.2917, allocations: 4.281 kB / 435.4 MB, free: 18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.2917, allocations: 7.375 kB / 435.4 MB, free: 18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.2919, allocations: 133.5 kB / 435.6 MB, free: 17.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.2919, allocations: 0 / 435.6 MB, free: 17.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.292, allocations: 2.75 kB / 435.6 MB, free: 17.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.292, allocations: 9.312 kB / 435.6 MB, free: 17.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001191/0.2921, allocations: 96.36 kB / 435.7 MB, free: 17.95 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000543/0.2927, allocations: 0.5797 MB / 436.2 MB, free: 17.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002197/0.2929, allocations: 128.2 kB / 436.4 MB, free: 17.42 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05375/0.3466, allocations: 32.45 MB / 468.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.3467, allocations: 34.44 kB / 468.9 MB, free: 5.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.044e-06/0.3467, allocations: 0 / 468.9 MB, free: 5.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006579/0.3474, allocations: 396.8 kB / 469.2 MB, free: 4.898 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.3474, allocations: 81.09 kB / 469.3 MB, free: 4.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.3476, allocations: 122.3 kB / 469.4 MB, free: 4.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.3476, allocations: 29.64 kB / 469.5 MB, free: 4.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.463e-05/0.3477, allocations: 87.08 kB / 469.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.31e-05/0.3477, allocations: 81.77 kB / 469.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-06/0.3477, allocations: 3.688 kB / 469.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.446e-05/0.3478, allocations: 321.5 kB / 470 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.731e-05/0.3479, allocations: 47.11 kB / 470 MB, free: 4.199 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.438e-05/0.348, allocations: 65.91 kB / 470.1 MB, free: 4.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.04e-05/0.3481, allocations: 53.81 kB / 470.1 MB, free: 4.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3481, allocations: 0 / 470.1 MB, free: 4.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002017/0.3483, allocations: 165.7 kB / 470.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3483, allocations: 7.781 kB / 470.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3483, allocations: 2.688 kB / 470.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.3483, allocations: 0 / 470.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.247e-05/0.3484, allocations: 28.17 kB / 470.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.3484, allocations: 7.188 kB / 470.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.187e-05/0.3485, allocations: 10.97 kB / 470.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.3485, allocations: 3.875 kB / 470.3 MB, free: 4.105 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.964e-05/0.3486, allocations: 119.9 kB / 470.5 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.638e-05/0.3487, allocations: 11.95 kB / 470.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003649/0.3491, allocations: 310 kB / 470.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002189/0.3493, allocations: 237.4 kB / 471 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3493, allocations: 3.188 kB / 471 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3493, allocations: 3.984 kB / 471 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009147/0.3502, allocations: 0.7564 MB / 471.8 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3503, allocations: 0 / 471.8 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.3504, allocations: 41.36 kB / 471.8 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.3504, allocations: 3 kB / 471.8 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.3504, allocations: 11.42 kB / 471.8 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3504, allocations: 3.25 kB / 471.8 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3504, allocations: 0 / 471.8 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004399/0.3509, allocations: 0.5301 MB / 472.4 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.962e-05/0.351, allocations: 99.02 kB / 472.5 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.351, allocations: 4.625 kB / 472.5 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.3511, allocations: 21.83 kB / 472.5 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.502e-05/0.3512, allocations: 22.09 kB / 472.5 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.3512, allocations: 3.25 kB / 472.5 MB, free: 18.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.167e-05/0.3512, allocations: 93.45 kB / 472.6 MB, free: 18.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.3512, allocations: 0 / 472.6 MB, free: 18.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003346/0.3546, allocations: 0.9284 MB / 473.5 MB, free: 18.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005991/0.3606, allocations: 2.496 MB / 476 MB, free: 17.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002883/0.3609, allocations: 253.1 kB / 476.3 MB, free: 17.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3609, allocations: 3.844 kB / 476.3 MB, free: 17.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.361, allocations: 117.4 kB / 476.4 MB, free: 17.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007924/0.3618, allocations: 141.5 kB / 476.5 MB, free: 17.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002914/0.3647, allocations: 1.57 MB / 478.1 MB, free: 16.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.3651, allocations: 0.7359 MB / 478.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001724/0.3653, allocations: 47.02 kB / 478.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.382e-05/0.3653, allocations: 63.58 kB / 478.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3654, allocations: 3.375 kB / 478.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05109/0.4165, allocations: 29.98 MB / 0.497 GB, free: 2.09 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002287/0.4167, allocations: 192.4 kB / 0.4972 GB, free: 1.855 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.854/3.271, allocations: 3.594 kB / 0.4972 GB, free: 1.855 MB / 366.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/linux/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) Environment - environmentSimulation: