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.0009232/0.0009232, allocations: 100.9 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.0009956/0.0009956, 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.303/1.303, allocations: 205.4 MB / 222.1 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0417/0.0417, allocations: 9.056 MB / 279.4 MB, free: 12.14 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.0004525/0.0004526, allocations: 16 kB / 339.2 MB, free: 25.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07623/0.0767, allocations: 49.18 MB / 388.4 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01549/0.09222, allocations: 14.47 MB / 402.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01363/0.1059, allocations: 13.17 MB / 416 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.89e-05/0.106, allocations: 0 / 416 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007241/0.1068, allocations: 231.2 kB / 416.2 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007555/0.1144, allocations: 3.165 MB / 419.4 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005408/0.1198, allocations: 2.251 MB / 421.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002195/0.12, allocations: 139.7 kB / 421.8 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.989e-05/0.1201, allocations: 9.062 kB / 421.8 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.1202, allocations: 87.69 kB / 421.9 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.343e-05/0.1203, allocations: 43.84 kB / 421.9 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.133e-05/0.1203, allocations: 4 kB / 421.9 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1837/0.304, allocations: 8.673 MB / 430.6 MB, free: 18.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.889e-05/0.3041, allocations: 16.23 kB / 430.6 MB, free: 18.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.63e-05/0.3042, allocations: 48.05 kB / 430.7 MB, free: 18.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005369/0.3096, allocations: 2.207 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.3096, allocations: 0 / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3096, allocations: 0 / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.658e-06/0.3096, allocations: 0 / 432.9 MB, free: 18.82 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.002819/0.3125, allocations: 0.8676 MB / 433.7 MB, free: 18.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.3125, allocations: 8.719 kB / 433.8 MB, free: 18.2 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.484e-05/0.3126, allocations: 40.27 kB / 433.8 MB, free: 18.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001931/0.3128, allocations: 31.02 kB / 433.8 MB, free: 18.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.3129, allocations: 193.1 kB / 434 MB, free: 17.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.313, allocations: 6.25 kB / 434 MB, free: 17.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.313, allocations: 9.812 kB / 434 MB, free: 17.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.3132, allocations: 125.5 kB / 434.2 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.3132, allocations: 3.875 kB / 434.2 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.3132, allocations: 6 kB / 434.2 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.3132, allocations: 5.281 kB / 434.2 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.3134, allocations: 99.95 kB / 434.3 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005608/0.3139, allocations: 0.5773 MB / 434.8 MB, free: 17.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.3142, allocations: 128.7 kB / 435 MB, free: 17.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05459/0.3688, allocations: 32.45 MB / 467.4 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/0.3688, allocations: 33.81 kB / 467.5 MB, free: 5.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.926e-06/0.3688, allocations: 6.234 kB / 467.5 MB, free: 5.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006904/0.3695, allocations: 402.5 kB / 467.8 MB, free: 4.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.3696, allocations: 77.11 kB / 467.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.291e-05/0.3697, allocations: 114.5 kB / 468 MB, free: 4.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.3697, allocations: 31.17 kB / 468.1 MB, free: 4.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.971e-05/0.3698, allocations: 83.2 kB / 468.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.309e-05/0.3698, allocations: 85.38 kB / 468.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-06/0.3698, allocations: 6.344 kB / 468.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002325/0.3701, allocations: 322.4 kB / 468.6 MB, free: 20.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.269e-05/0.3701, allocations: 49.02 kB / 468.6 MB, free: 20.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.718e-05/0.3702, allocations: 66.88 kB / 468.7 MB, free: 20.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.336e-05/0.3703, allocations: 49.84 kB / 468.7 MB, free: 20.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3703, allocations: 0 / 468.7 MB, free: 20.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002152/0.3705, allocations: 166.8 kB / 468.9 MB, free: 20.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.3706, allocations: 6.625 kB / 468.9 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3706, allocations: 3.344 kB / 468.9 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.3706, allocations: 0 / 468.9 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.033e-05/0.3707, allocations: 19 kB / 468.9 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.3707, allocations: 10.34 kB / 468.9 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.45e-05/0.3708, allocations: 12.73 kB / 468.9 MB, free: 20.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.3708, allocations: 6.625 kB / 468.9 MB, free: 20.16 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.612e-05/0.3709, allocations: 118.9 kB / 469.1 MB, free: 20.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.741e-05/0.3709, allocations: 14.45 kB / 469.1 MB, free: 20.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004014/0.3713, allocations: 308.9 kB / 469.4 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002364/0.3716, allocations: 235.4 kB / 469.6 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.3716, allocations: 0 / 469.6 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3716, allocations: 0 / 469.6 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000853/0.3725, allocations: 0.7655 MB / 470.4 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3725, allocations: 0 / 470.4 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.3727, allocations: 35.64 kB / 470.4 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3727, allocations: 3.281 kB / 470.4 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.3727, allocations: 11.09 kB / 470.4 MB, free: 19.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.3727, allocations: 3.047 kB / 470.4 MB, free: 19.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3727, allocations: 0 / 470.4 MB, free: 19.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004729/0.3732, allocations: 0.5336 MB / 470.9 MB, free: 19.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.819e-05/0.3733, allocations: 98.98 kB / 471 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.3733, allocations: 10.88 kB / 471.1 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.3734, allocations: 11.92 kB / 471.1 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.64e-05/0.3735, allocations: 24.62 kB / 471.1 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.3735, allocations: 6.094 kB / 471.1 MB, free: 19.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.914e-05/0.3735, allocations: 91.28 kB / 471.2 MB, free: 19.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3736, allocations: 3.375 kB / 471.2 MB, free: 19.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003737/0.3773, allocations: 0.9214 MB / 472.1 MB, free: 18.89 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.007551/0.3849, allocations: 2.47 MB / 474.6 MB, free: 17.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005177/0.3854, allocations: 242.3 kB / 474.8 MB, free: 17.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3854, allocations: 3.938 kB / 474.8 MB, free: 17.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.3856, allocations: 120.9 kB / 474.9 MB, free: 17.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009436/0.3866, allocations: 148.6 kB / 475.1 MB, free: 17.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004399/0.391, allocations: 1.564 MB / 476.6 MB, free: 16.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.3914, allocations: 0.7421 MB / 477.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002214/0.3916, allocations: 37.33 kB / 477.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.741e-05/0.3917, allocations: 67.91 kB / 477.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3917, allocations: 0 / 477.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07439/0.4661, allocations: 29.91 MB / 0.4955 GB, free: 3.082 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/0.4664, allocations: 187.1 kB / 0.4957 GB, free: 2.844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.648/3.114, allocations: 0 / 0.4957 GB, free: 2.844 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: