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.0009926/0.0009927, allocations: 94.91 kB / 15.37 MB, free: 0.7266 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.001278/0.001278, allocations: 177.2 kB / 16.27 MB, free: 6.672 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.803/1.803, allocations: 205.4 MB / 222.5 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04694/0.04694, allocations: 9.066 MB / 279.8 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.0006546/0.0006543, allocations: 12 kB / 339.8 MB, free: 25.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1239, allocations: 49.18 MB / 389 MB, free: 8.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.02296/0.1469, allocations: 17.09 MB / 406.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01964/0.1666, allocations: 16.94 MB / 423.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.1669, allocations: 0 / 423.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009552/0.1678, allocations: 251.3 kB / 423.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01888/0.1867, allocations: 5.212 MB / 428.5 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001968/0.1887, allocations: 465.8 kB / 429 MB, free: 236 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000247/0.189, allocations: 187 kB / 429.2 MB, free: 48 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.754e-05/0.189, allocations: 5.125 kB / 429.2 MB, free: 40 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2552/0.4443, allocations: 71.92 kB / 429.2 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.4445, allocations: 57.69 kB / 429.3 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.86e-05/0.4445, allocations: 3.375 kB / 429.3 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02061/0.4651, allocations: 8.788 MB / 438.1 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.245e-05/0.4652, allocations: 12.39 kB / 438.1 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.4654, allocations: 84.3 kB / 438.2 MB, free: 18.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0145/0.4799, allocations: 3.858 MB / 442 MB, free: 18.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4799, allocations: 1.156 kB / 442 MB, free: 18.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4799, allocations: 3.281 kB / 442 MB, free: 18.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.4799, allocations: 0 / 442 MB, free: 18.62 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.00263/0.4826, allocations: 0.8827 MB / 442.9 MB, free: 17.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.4826, allocations: 9.562 kB / 442.9 MB, free: 17.95 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.545e-05/0.4827, allocations: 41.42 kB / 443 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/0.4829, allocations: 23.55 kB / 443 MB, free: 17.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000231/0.4831, allocations: 205.3 kB / 443.2 MB, free: 17.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.4831, allocations: 2.562 kB / 443.2 MB, free: 17.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.4832, allocations: 10.66 kB / 443.2 MB, free: 17.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002261/0.4834, allocations: 127.7 kB / 443.3 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.4834, allocations: 2.375 kB / 443.3 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.4835, allocations: 0 / 443.3 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.4835, allocations: 8.078 kB / 443.3 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/0.4836, allocations: 96.73 kB / 443.4 MB, free: 17.61 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005626/0.4842, allocations: 0.5775 MB / 444 MB, free: 17.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.4845, allocations: 128.2 kB / 444.1 MB, free: 17.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.761e-05/0.4846, allocations: 78.7 kB / 444.2 MB, free: 17.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05528/0.5399, allocations: 32.34 MB / 476.6 MB, free: 17.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/0.54, allocations: 34.12 kB / 476.6 MB, free: 17.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 3.216e-06/0.54, allocations: 4 kB / 476.6 MB, free: 17.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007397/0.5407, allocations: 229.5 kB / 476.8 MB, free: 17.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.5408, allocations: 80.98 kB / 476.9 MB, free: 17.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.5409, allocations: 124 kB / 477 MB, free: 17.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.5409, allocations: 29.05 kB / 477 MB, free: 17.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.184e-05/0.541, allocations: 84.45 kB / 477.1 MB, free: 17.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.527e-05/0.5411, allocations: 81.41 kB / 477.2 MB, free: 16.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.273e-05/0.5411, allocations: 28.45 kB / 477.2 MB, free: 16.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.5413, allocations: 322.6 kB / 477.6 MB, free: 16.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.103e-05/0.5413, allocations: 48.17 kB / 477.6 MB, free: 16.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.858e-05/0.5414, allocations: 71.44 kB / 477.7 MB, free: 16.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.5416, allocations: 116.2 kB / 477.8 MB, free: 16.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.5416, allocations: 0 / 477.8 MB, free: 16.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002327/0.5418, allocations: 168.5 kB / 477.9 MB, free: 16.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.5419, allocations: 11.64 kB / 478 MB, free: 16.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.5419, allocations: 0 / 478 MB, free: 16.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.5419, allocations: 7.531 kB / 478 MB, free: 16.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.89e-05/0.542, allocations: 14.28 kB / 478 MB, free: 16.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.542, allocations: 11.62 kB / 478 MB, free: 16.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.858e-05/0.5421, allocations: 9.031 kB / 478 MB, free: 16.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.5422, allocations: 4.781 kB / 478 MB, free: 16.52 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.0001046/0.5423, allocations: 120.8 kB / 478.1 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.713e-05/0.5423, allocations: 14.12 kB / 478.1 MB, free: 16.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004347/0.5428, allocations: 312.8 kB / 478.4 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002579/0.543, allocations: 243.3 kB / 478.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.5431, allocations: 4.812 kB / 478.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.5431, allocations: 0 / 478.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008755/0.5439, allocations: 0.7612 MB / 479.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.544, allocations: 0 / 479.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.5441, allocations: 40.64 kB / 479.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.5441, allocations: 7.156 kB / 479.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.5442, allocations: 7 kB / 479.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.5442, allocations: 0 / 479.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.5442, allocations: 0 / 479.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005365/0.5447, allocations: 0.5215 MB / 480 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.582e-05/0.5448, allocations: 95.05 kB / 480.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.5448, allocations: 9.031 kB / 480.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.5449, allocations: 10.59 kB / 480.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/0.545, allocations: 25.34 kB / 480.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.545, allocations: 6.844 kB / 480.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.967e-05/0.5451, allocations: 93.8 kB / 480.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5451, allocations: 0 / 480.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00381/0.5489, allocations: 0.9247 MB / 481.2 MB, free: 14.45 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.005003/0.5539, allocations: 2.394 MB / 483.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003914/0.5543, allocations: 245.5 kB / 483.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.5543, allocations: 0 / 483.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.5545, allocations: 122.2 kB / 483.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.5555, allocations: 147.6 kB / 484.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.559, allocations: 2.523 MB / 486.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004656/0.5594, allocations: 0.7331 MB / 487.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002043/0.5597, allocations: 46.45 kB / 487.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.5598, allocations: 62.67 kB / 487.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of SimCode: time 1.253e-06/0.5598, allocations: 0 / 487.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06398/0.6238, allocations: 30.21 MB / 0.5055 GB, free: 10.66 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002737/0.6241, allocations: 213.9 kB / 0.5057 GB, free: 10.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.316/3.94, allocations: 0 / 0.5057 GB, free: 10.4 MB / 382.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/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)