Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.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.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",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.001583/0.001583, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002058/0.002058, allocations: 194.9 kB / 16.14 MB, free: 6.66 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.318/1.318, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04297/0.04297, allocations: 9.077 MB / 278.4 MB, free: 12.39 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.00129/0.00129, allocations: 71.84 kB / 337.5 MB, free: 25.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07196/0.07326, allocations: 48.16 MB / 385.6 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01489/0.08818, allocations: 13.66 MB / 399.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00954/0.09775, allocations: 9.312 MB / 408.6 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.932e-05/0.09787, allocations: 0 / 408.6 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.09805, allocations: 39.78 kB / 408.6 MB, free: 2.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003425/0.1015, allocations: 1.461 MB / 410.1 MB, free: 1.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00407/0.1056, allocations: 1.787 MB / 411.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001256/0.1057, allocations: 127 kB / 412 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.14e-05/0.1057, allocations: 4 kB / 412 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.294e-05/0.1058, allocations: 43.84 kB / 412 MB, free: 15.06 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.383e-05/0.1059, allocations: 55.78 kB / 412.1 MB, free: 15.01 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.157e-05/0.1059, allocations: 4 kB / 412.1 MB, free: 15 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009492/0.1154, allocations: 6.844 MB / 418.9 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.317e-05/0.1154, allocations: 19.86 kB / 419 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.321e-05/0.1155, allocations: 51.73 kB / 419 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005468/0.121, allocations: 3.794 MB / 422.8 MB, free: 4.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.121, allocations: 0 / 422.8 MB, free: 4.281 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.121, allocations: 0 / 422.8 MB, free: 4.281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.121, allocations: 4 kB / 422.8 MB, free: 4.277 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.002083/0.1231, allocations: 0.8814 MB / 423.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.1231, allocations: 8.031 kB / 423.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.731e-05/0.1232, allocations: 38.75 kB / 423.7 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003301/0.1235, allocations: 44.8 kB / 423.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.1237, allocations: 208.1 kB / 424 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.1238, allocations: 16.31 kB / 424 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.1238, allocations: 8 kB / 424 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008277/0.1246, allocations: 259.2 kB / 424.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1246, allocations: 0 / 424.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.1247, allocations: 8 kB / 424.3 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1247, allocations: 3.938 kB / 424.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007557/0.1254, allocations: 219.7 kB / 424.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006388/0.1261, allocations: 0.6662 MB / 425.1 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000838/0.1269, allocations: 237 kB / 425.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.173e-05/0.127, allocations: 61.62 kB / 425.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2576/0.3846, allocations: 63.95 MB / 489.4 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.3847, allocations: 34.56 kB / 489.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.185e-06/0.3847, allocations: 0 / 489.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001688/0.3864, allocations: 371.7 kB / 489.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.3864, allocations: 81.11 kB / 489.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.3866, allocations: 130.1 kB / 490 MB, free: 1.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.3866, allocations: 25.7 kB / 490 MB, free: 1.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.3867, allocations: 104.8 kB / 490.1 MB, free: 1.215 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.263e-05/0.3868, allocations: 49.22 kB / 490.2 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.3869, allocations: 61.67 kB / 490.2 MB, free: 1.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.387, allocations: 318.8 kB / 490.5 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.3872, allocations: 59.97 kB / 490.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/0.3874, allocations: 91.23 kB / 490.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.3877, allocations: 147.1 kB / 490.8 MB, free: 492 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3877, allocations: 0 / 490.8 MB, free: 492 kB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004649/0.3882, allocations: 213.2 kB / 491 MB, free: 280 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3882, allocations: 8 kB / 491.1 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3882, allocations: 7.406 kB / 491.1 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.3882, allocations: 0 / 491.1 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002213/0.3884, allocations: 51.95 kB / 491.1 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.3885, allocations: 3.984 kB / 491.1 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.3886, allocations: 18.08 kB / 491.1 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.3886, allocations: 19.98 kB / 491.1 MB, free: 180 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state_h.phase,state_p.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001017/0.3887, allocations: 121.8 kB / 491.3 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.231e-05/0.3888, allocations: 11.84 kB / 491.3 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/0.3908, allocations: 2.114 MB / 493.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.3908, allocations: 8 kB / 493.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3908, allocations: 0 / 493.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3908, allocations: 3.984 kB / 493.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009705/0.3918, allocations: 1.042 MB / 494.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.3918, allocations: 0 / 494.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002275/0.392, allocations: 35.91 kB / 494.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.392, allocations: 4 kB / 494.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.3921, allocations: 11.98 kB / 494.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3921, allocations: 0 / 494.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.3921, allocations: 4.875 kB / 494.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006968/0.3928, allocations: 0.6376 MB / 495.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.884e-05/0.3928, allocations: 101.8 kB / 495.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.929e-05/0.3929, allocations: 8 kB / 495.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/0.393, allocations: 64 / 495.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.3931, allocations: 19.98 kB / 495.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.3931, allocations: 7.938 kB / 495.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.687e-05/0.3932, allocations: 100.3 kB / 495.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3932, allocations: 0 / 495.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002388/0.3956, allocations: 0.9093 MB / 496.3 MB, free: 10.99 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_p_int,d_h_int) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * 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.004476/0.4001, allocations: 2.173 MB / 498.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003941/0.4005, allocations: 223.1 kB / 498.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.4005, allocations: 0 / 498.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000205/0.4007, allocations: 160 kB / 498.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006094/0.4013, allocations: 72.39 kB / 498.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003507/0.4048, allocations: 2.67 MB / 0.4898 GB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.4052, allocations: 0.7366 MB / 0.4905 GB, free: 4.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004328/0.4056, allocations: 371.1 kB / 0.4909 GB, free: 4.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.4057, allocations: 67.41 kB / 0.491 GB, free: 4.504 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4057, allocations: 0 / 0.491 GB, free: 4.504 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6298/1.036, allocations: 36.18 MB / 0.5263 GB, free: 352 kB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002817/1.036, allocations: 209.7 kB / 0.5265 GB, free: 92 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.162/6.198, allocations: 11.88 kB / 0.5265 GB, free: 80 kB / 382.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)