Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.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.CheckDerivativesHelium,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium",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.0007808/0.0007809, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.0009606/0.0009606, allocations: 168.7 kB / 15.95 MB, free: 204 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.325/1.325, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04341/0.04341, allocations: 9.062 MB / 279.5 MB, free: 12.24 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.0005002/0.0005002, allocations: 16 kB / 339.2 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08174/0.08225, allocations: 49.19 MB / 388.4 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01795/0.1002, allocations: 16.04 MB / 404.5 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01631/0.1166, allocations: 15.71 MB / 420.2 MB, free: 8.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.1168, allocations: 0 / 420.2 MB, free: 8.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006327/0.1174, allocations: 222.9 kB / 420.4 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01465/0.1321, allocations: 4.947 MB / 425.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001336/0.1334, allocations: 421.8 kB / 425.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.1337, allocations: 183 kB / 425.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.778e-05/0.1337, allocations: 9.062 kB / 425.9 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001688/0.1339, allocations: 79.58 kB / 426 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.134, allocations: 55.78 kB / 426.1 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.1341, allocations: 4 kB / 426.1 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1835/0.3176, allocations: 7.85 MB / 433.9 MB, free: 19.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.746e-05/0.3177, allocations: 15.23 kB / 433.9 MB, free: 19.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.206e-05/0.3177, allocations: 44.2 kB / 434 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00487/0.3226, allocations: 2.338 MB / 436.3 MB, free: 19.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.3226, allocations: 0 / 436.3 MB, free: 19.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.3226, allocations: 0 / 436.3 MB, free: 19.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.876e-06/0.3226, allocations: 4.562 kB / 436.3 MB, free: 19.71 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.002042/0.3247, allocations: 0.8739 MB / 437.2 MB, free: 19.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.862e-05/0.3247, allocations: 10.31 kB / 437.2 MB, free: 19.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.64e-05/0.3248, allocations: 47.05 kB / 437.3 MB, free: 19.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.3249, allocations: 26.34 kB / 437.3 MB, free: 19.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.3251, allocations: 194.8 kB / 437.5 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.847e-06/0.3251, allocations: 9.531 kB / 437.5 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/0.3251, allocations: 10.62 kB / 437.5 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001457/0.3253, allocations: 130.2 kB / 437.6 MB, free: 18.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.731e-06/0.3253, allocations: 2.125 kB / 437.6 MB, free: 18.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.713e-06/0.3253, allocations: 2.578 kB / 437.6 MB, free: 18.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.3253, allocations: 4.203 kB / 437.6 MB, free: 18.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.3254, allocations: 97.23 kB / 437.7 MB, free: 18.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004267/0.3259, allocations: 0.5764 MB / 438.3 MB, free: 18.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.3261, allocations: 132.9 kB / 438.4 MB, free: 18.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.916e-05/0.3261, allocations: 76.39 kB / 438.5 MB, free: 18.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04699/0.3731, allocations: 32.35 MB / 470.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.3732, allocations: 31.17 kB / 470.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.465e-06/0.3732, allocations: 3.531 kB / 470.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007523/0.374, allocations: 229.7 kB / 471.1 MB, free: 20.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.374, allocations: 84.23 kB / 471.2 MB, free: 20.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.397e-05/0.3741, allocations: 117.8 kB / 471.3 MB, free: 20.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.3742, allocations: 31.39 kB / 471.3 MB, free: 20.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.694e-05/0.3742, allocations: 88.03 kB / 471.4 MB, free: 20.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.505e-05/0.3743, allocations: 83.94 kB / 471.5 MB, free: 20.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-06/0.3743, allocations: 0 / 471.5 MB, free: 20.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3744, allocations: 324.9 kB / 471.8 MB, free: 19.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.04e-05/0.3745, allocations: 39.67 kB / 471.9 MB, free: 19.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.807e-05/0.3745, allocations: 71.22 kB / 471.9 MB, free: 19.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.09e-05/0.3746, allocations: 49.97 kB / 472 MB, free: 19.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3746, allocations: 2.625 kB / 472 MB, free: 19.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001964/0.3748, allocations: 166.6 kB / 472.1 MB, free: 19.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.3749, allocations: 3.562 kB / 472.1 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.3749, allocations: 0 / 472.1 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3749, allocations: 5.203 kB / 472.2 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.314e-05/0.375, allocations: 21.23 kB / 472.2 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.375, allocations: 3.375 kB / 472.2 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.073e-05/0.3751, allocations: 6.844 kB / 472.2 MB, free: 19.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.3751, allocations: 7.031 kB / 472.2 MB, free: 19.67 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.753e-05/0.3752, allocations: 126.6 kB / 472.3 MB, free: 19.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.669e-05/0.3753, allocations: 11.42 kB / 472.3 MB, free: 19.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003709/0.3756, allocations: 314.8 kB / 472.6 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000234/0.3759, allocations: 243.2 kB / 472.9 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3759, allocations: 0 / 472.9 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3759, allocations: 0 / 472.9 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007725/0.3767, allocations: 0.7609 MB / 473.6 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3767, allocations: 0 / 473.6 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.3768, allocations: 38.27 kB / 473.7 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.3768, allocations: 3.312 kB / 473.7 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.3769, allocations: 7.859 kB / 473.7 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.3769, allocations: 7.375 kB / 473.7 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3769, allocations: 0 / 473.7 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004212/0.3773, allocations: 0.5229 MB / 474.2 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.993e-05/0.3774, allocations: 92.33 kB / 474.3 MB, free: 18.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.3774, allocations: 9.438 kB / 474.3 MB, free: 18.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.3775, allocations: 14.81 kB / 474.3 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.472e-05/0.3776, allocations: 18.14 kB / 474.3 MB, free: 18.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.3776, allocations: 10.09 kB / 474.4 MB, free: 18.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.678e-05/0.3776, allocations: 102.4 kB / 474.5 MB, free: 18.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3776, allocations: 0 / 474.5 MB, free: 18.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003367/0.381, allocations: 0.9197 MB / 475.4 MB, free: 18.25 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.005197/0.3862, allocations: 2.379 MB / 477.7 MB, free: 17.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003323/0.3866, allocations: 249.2 kB / 478 MB, free: 17.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3866, allocations: 0 / 478 MB, free: 17.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.3867, allocations: 126.5 kB / 478.1 MB, free: 17.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008534/0.3876, allocations: 146 kB / 478.3 MB, free: 16.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002535/0.3901, allocations: 1.422 MB / 479.7 MB, free: 16.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.3904, allocations: 0.7313 MB / 480.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.3906, allocations: 50.84 kB / 480.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.086e-05/0.3907, allocations: 60.81 kB / 480.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3907, allocations: 0 / 480.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05119/0.4419, allocations: 29.95 MB / 0.4985 GB, free: 1.637 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/0.4421, allocations: 196.4 kB / 0.4987 GB, free: 1.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.712/3.154, allocations: 0 / 0.4987 GB, free: 1.395 MB / 366.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1) Environment - environmentSimulation: