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.001356/0.001357, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001634/0.001634, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.388/1.388, allocations: 205.1 MB / 222.1 MB, free: 4.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04443/0.04443, allocations: 9.089 MB / 278.5 MB, free: 12.34 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.001451/0.001451, allocations: 67.89 kB / 337.6 MB, free: 25.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09499/0.09645, allocations: 48.16 MB / 385.8 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01888/0.1154, allocations: 17.34 MB / 403.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.131, allocations: 16.78 MB / 419.9 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.374e-05/0.1312, allocations: 0 / 419.9 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007352/0.132, allocations: 259.3 kB / 420.2 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01772/0.1497, allocations: 5.456 MB / 425.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001788/0.1515, allocations: 497.7 kB / 426.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002134/0.1517, allocations: 191 kB / 426.3 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.994e-05/0.1518, allocations: 13.06 kB / 426.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.1519, allocations: 79.61 kB / 426.4 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.748e-05/0.152, allocations: 63.7 kB / 426.4 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.342e-05/0.152, allocations: 4 kB / 426.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1922/0.3443, allocations: 9.338 MB / 435.8 MB, free: 18.74 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.74e-05/0.3443, allocations: 14.48 kB / 435.8 MB, free: 18.74 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.649e-05/0.3444, allocations: 56.08 kB / 435.9 MB, free: 18.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01096/0.3554, allocations: 4.027 MB / 439.9 MB, free: 18.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3554, allocations: 2.375 kB / 439.9 MB, free: 18.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3554, allocations: 0 / 439.9 MB, free: 18.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.3554, allocations: 0.9688 kB / 439.9 MB, free: 18.65 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.002135/0.3576, allocations: 0.8841 MB / 440.8 MB, free: 18.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.3576, allocations: 8.969 kB / 440.8 MB, free: 18.03 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.964e-05/0.3577, allocations: 44.8 kB / 440.8 MB, free: 17.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001669/0.3579, allocations: 26.06 kB / 440.8 MB, free: 17.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.358, allocations: 198.5 kB / 441 MB, free: 17.78 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.3581, allocations: 9.656 kB / 441 MB, free: 17.78 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.293e-05/0.3581, allocations: 8 kB / 441.1 MB, free: 17.78 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.3583, allocations: 128.7 kB / 441.2 MB, free: 17.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.3583, allocations: 1.344 kB / 441.2 MB, free: 17.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.3583, allocations: 3.875 kB / 441.2 MB, free: 17.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.3584, allocations: 4.438 kB / 441.2 MB, free: 17.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.3585, allocations: 98.92 kB / 441.3 MB, free: 17.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005788/0.3591, allocations: 0.5745 MB / 441.9 MB, free: 17.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002203/0.3593, allocations: 127.8 kB / 442 MB, free: 17.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.05e-05/0.3594, allocations: 82.67 kB / 442.1 MB, free: 17.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05803/0.4175, allocations: 33.17 MB / 475.2 MB, free: 17.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/0.4175, allocations: 32.69 kB / 475.3 MB, free: 17.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.595e-06/0.4176, allocations: 4 kB / 475.3 MB, free: 17.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006348/0.4182, allocations: 232.5 kB / 475.5 MB, free: 17.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.4183, allocations: 81.83 kB / 475.6 MB, free: 17.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.733e-05/0.4184, allocations: 126.7 kB / 475.7 MB, free: 17.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.4184, allocations: 27.7 kB / 475.7 MB, free: 17.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.094e-05/0.4185, allocations: 88.62 kB / 475.8 MB, free: 17.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.512e-05/0.4185, allocations: 74.92 kB / 475.9 MB, free: 17.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/0.4186, allocations: 36.7 kB / 475.9 MB, free: 17.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4187, allocations: 328.6 kB / 476.2 MB, free: 16.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.857e-05/0.4188, allocations: 42.61 kB / 476.3 MB, free: 16.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.054e-05/0.4189, allocations: 71.97 kB / 476.4 MB, free: 16.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.419, allocations: 123.8 kB / 476.5 MB, free: 16.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.419, allocations: 0 / 476.5 MB, free: 16.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000221/0.4193, allocations: 161.9 kB / 476.6 MB, free: 16.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.4193, allocations: 7.219 kB / 476.6 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.4193, allocations: 0 / 476.6 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.4193, allocations: 4 kB / 476.6 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.989e-05/0.4194, allocations: 21.94 kB / 476.7 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.4194, allocations: 7.469 kB / 476.7 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.915e-05/0.4195, allocations: 13.69 kB / 476.7 MB, free: 16.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.4196, allocations: 11 kB / 476.7 MB, free: 16.61 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.0001141/0.4197, allocations: 119.4 kB / 476.8 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.4198, allocations: 7.469 kB / 476.8 MB, free: 16.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004635/0.4202, allocations: 323.6 kB / 477.1 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002519/0.4205, allocations: 242.2 kB / 477.4 MB, free: 16.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.4205, allocations: 3.938 kB / 477.4 MB, free: 16.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.4205, allocations: 3.984 kB / 477.4 MB, free: 16.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000894/0.4214, allocations: 0.7528 MB / 478.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.4214, allocations: 0 / 478.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001493/0.4216, allocations: 42.45 kB / 478.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.4216, allocations: 8 kB / 478.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.4216, allocations: 3.938 kB / 478.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.4216, allocations: 4 kB / 478.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4216, allocations: 0 / 478.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004984/0.4221, allocations: 0.5189 MB / 478.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.531e-05/0.4222, allocations: 96.84 kB / 478.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.4222, allocations: 5.656 kB / 478.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.4224, allocations: 11.94 kB / 478.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.764e-05/0.4224, allocations: 15.92 kB / 478.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.4224, allocations: 7.938 kB / 478.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.64e-05/0.4225, allocations: 98.86 kB / 478.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4225, allocations: 0 / 478.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003015/0.4255, allocations: 0.9319 MB / 479.9 MB, free: 14.23 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.004955/0.4305, allocations: 2.397 MB / 482.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004691/0.431, allocations: 252 kB / 482.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.431, allocations: 0 / 482.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.4312, allocations: 122.8 kB / 482.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.4322, allocations: 150.2 kB / 482.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004398/0.4366, allocations: 2.484 MB / 485.3 MB, free: 9.422 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003927/0.4371, allocations: 0.7289 MB / 486 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002152/0.4373, allocations: 53.97 kB / 486.1 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.4374, allocations: 59.42 kB / 486.1 MB, free: 8.555 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4374, allocations: 0 / 486.1 MB, free: 8.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05469/0.4921, allocations: 30.51 MB / 0.5045 GB, free: 10.14 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001991/0.4923, allocations: 207.9 kB / 0.5047 GB, free: 9.887 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.871/3.364, allocations: 0 / 0.5047 GB, free: 9.887 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)