Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.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.CheckDerivativesButane,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesButane,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane",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.001395/0.001395, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00159/0.00159, allocations: 191.6 kB / 16.14 MB, free: 6.707 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.396/1.396, allocations: 205.1 MB / 222 MB, free: 4.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0437/0.0437, allocations: 9.078 MB / 278.4 MB, free: 12.4 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.002416/0.002416, allocations: 67.91 kB / 337.4 MB, free: 25.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09675/0.09919, allocations: 48.16 MB / 385.6 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.02391/0.1231, allocations: 17.66 MB / 403.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01733/0.1405, allocations: 17.25 MB / 420.5 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.1407, allocations: 0 / 420.5 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007319/0.1415, allocations: 259.3 kB / 420.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01485/0.1563, allocations: 5.256 MB / 426 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001408/0.1578, allocations: 489.8 kB / 426.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002301/0.158, allocations: 203 kB / 426.7 MB, free: 344 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.364e-05/0.1581, allocations: 5.125 kB / 426.7 MB, free: 336 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.1582, allocations: 83.59 kB / 426.8 MB, free: 252 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.1583, allocations: 63.7 kB / 426.8 MB, free: 188 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.1584, allocations: 0 / 426.8 MB, free: 188 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1976/0.356, allocations: 9.142 MB / 436 MB, free: 18.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.811e-05/0.356, allocations: 16.92 kB / 436 MB, free: 18.37 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.779e-05/0.3561, allocations: 52.98 kB / 436.1 MB, free: 18.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01265/0.3688, allocations: 3.889 MB / 439.9 MB, free: 18.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3688, allocations: 0.9375 kB / 439.9 MB, free: 18.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3689, allocations: 0 / 439.9 MB, free: 18.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.3689, allocations: 0 / 439.9 MB, free: 18.26 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.00257/0.3714, allocations: 0.8925 MB / 440.8 MB, free: 17.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3715, allocations: 9.562 kB / 440.8 MB, free: 17.64 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.327e-05/0.3715, allocations: 43.03 kB / 440.9 MB, free: 17.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001909/0.3717, allocations: 26.19 kB / 440.9 MB, free: 17.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001897/0.3719, allocations: 199.4 kB / 441.1 MB, free: 17.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.372, allocations: 10.62 kB / 441.1 MB, free: 17.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.372, allocations: 4.219 kB / 441.1 MB, free: 17.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.3722, allocations: 132.8 kB / 441.3 MB, free: 17.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3722, allocations: 0 / 441.3 MB, free: 17.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.3722, allocations: 1.188 kB / 441.3 MB, free: 17.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.3722, allocations: 8.188 kB / 441.3 MB, free: 17.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.3724, allocations: 98.27 kB / 441.4 MB, free: 17.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005652/0.373, allocations: 0.5805 MB / 441.9 MB, free: 16.83 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.3732, allocations: 129.5 kB / 442.1 MB, free: 16.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.3734, allocations: 77.95 kB / 442.1 MB, free: 16.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06101/0.4344, allocations: 33.16 MB / 475.3 MB, free: 17.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.4345, allocations: 44.39 kB / 475.3 MB, free: 16.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.554e-06/0.4345, allocations: 0 / 475.3 MB, free: 16.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006633/0.4351, allocations: 232.8 kB / 475.6 MB, free: 16.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.4352, allocations: 79.95 kB / 475.7 MB, free: 16.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.357e-05/0.4353, allocations: 121.9 kB / 475.8 MB, free: 16.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.4353, allocations: 29.36 kB / 475.8 MB, free: 16.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.714e-05/0.4354, allocations: 88.5 kB / 475.9 MB, free: 16.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.89e-05/0.4354, allocations: 79.25 kB / 476 MB, free: 16.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.726e-05/0.4355, allocations: 38.77 kB / 476 MB, free: 16.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4356, allocations: 322.1 kB / 476.3 MB, free: 16.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.447e-05/0.4357, allocations: 40.89 kB / 476.4 MB, free: 16.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.579e-05/0.4358, allocations: 74.69 kB / 476.4 MB, free: 16.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.4359, allocations: 124.4 kB / 476.6 MB, free: 16.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4359, allocations: 0 / 476.6 MB, free: 16.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002361/0.4362, allocations: 167.5 kB / 476.7 MB, free: 16.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4362, allocations: 10.97 kB / 476.7 MB, free: 16.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.4362, allocations: 0 / 476.7 MB, free: 16.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.4362, allocations: 0 / 476.7 MB, free: 16.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.218e-05/0.4363, allocations: 26.83 kB / 476.8 MB, free: 16.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.4363, allocations: 7.219 kB / 476.8 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.094e-05/0.4364, allocations: 13.5 kB / 476.8 MB, free: 16.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.4365, allocations: 4.781 kB / 476.8 MB, free: 16.07 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.0001285/0.4366, allocations: 114.2 kB / 476.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.714e-05/0.4367, allocations: 15.22 kB / 476.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004735/0.4371, allocations: 317.5 kB / 477.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002819/0.4374, allocations: 230.9 kB / 477.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.4375, allocations: 13.67 kB / 477.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.4375, allocations: 0 / 477.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008895/0.4384, allocations: 0.7562 MB / 478.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4384, allocations: 0 / 478.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.4385, allocations: 40.97 kB / 478.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.4386, allocations: 3.656 kB / 478.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.4386, allocations: 9.938 kB / 478.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.4386, allocations: 0 / 478.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4386, allocations: 0 / 478.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005225/0.4391, allocations: 0.5294 MB / 478.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.4392, allocations: 96.83 kB / 478.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.4392, allocations: 7.938 kB / 478.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.4393, allocations: 0 / 478.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.4394, allocations: 22.92 kB / 478.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.4394, allocations: 7.812 kB / 478.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.167e-05/0.4395, allocations: 93.52 kB / 479 MB, free: 14.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4395, allocations: 0 / 479 MB, free: 14.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003293/0.4428, allocations: 0.9256 MB / 479.9 MB, free: 13.59 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.005944/0.4487, allocations: 2.391 MB / 482.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004146/0.4492, allocations: 255.4 kB / 482.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4492, allocations: 4 kB / 482.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.4493, allocations: 120.5 kB / 482.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.4504, allocations: 147.1 kB / 482.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/0.4544, allocations: 2.472 MB / 485.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.4547, allocations: 0.737 MB / 486.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.4549, allocations: 45.97 kB / 486.1 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.898e-05/0.455, allocations: 67.67 kB / 486.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.455, allocations: 2.344 kB / 486.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.273/1.728, allocations: 30.28 MB / 0.5043 GB, free: 9.801 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003526/1.728, allocations: 203.8 kB / 0.5045 GB, free: 9.551 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.03/4.758, allocations: 0 / 0.5045 GB, free: 9.551 MB / 382.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1)