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.001074/0.001074, allocations: 100.2 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.001058/0.001058, allocations: 177.3 kB / 15.95 MB, free: 216 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.297/1.297, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04292/0.04292, allocations: 9.065 MB / 279.4 MB, free: 12.26 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.0004957/0.0004957, allocations: 15.94 kB / 339.2 MB, free: 25.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08316/0.08366, allocations: 49.17 MB / 388.4 MB, free: 8.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01498/0.09868, allocations: 14.55 MB / 402.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0123/0.111, allocations: 13.26 MB / 416.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.1112, allocations: 0 / 416.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007275/0.1119, allocations: 239.2 kB / 416.4 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008474/0.1204, allocations: 3.185 MB / 419.6 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006874/0.1273, allocations: 2.284 MB / 421.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003046/0.1276, allocations: 143.7 kB / 422 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.122e-05/0.1277, allocations: 13.05 kB / 422 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.1279, allocations: 87.69 kB / 422.1 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.128, allocations: 59.78 kB / 422.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.128, allocations: 4 kB / 422.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1725/0.3006, allocations: 8.924 MB / 431.1 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.157e-05/0.3006, allocations: 13.97 kB / 431.1 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.102e-05/0.3007, allocations: 50.83 kB / 431.2 MB, free: 18.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005335/0.3061, allocations: 2.205 MB / 433.4 MB, free: 18.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3061, allocations: 0 / 433.4 MB, free: 18.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3061, allocations: 0 / 433.4 MB, free: 18.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.3061, allocations: 0.5625 kB / 433.4 MB, free: 18.68 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.00222/0.3083, allocations: 0.8675 MB / 434.2 MB, free: 18.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3084, allocations: 8.688 kB / 434.3 MB, free: 18.06 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.747e-05/0.3084, allocations: 45.73 kB / 434.3 MB, free: 18.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.3086, allocations: 23.86 kB / 434.3 MB, free: 18.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.3088, allocations: 191.9 kB / 434.5 MB, free: 17.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.3088, allocations: 5.875 kB / 434.5 MB, free: 17.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.3088, allocations: 8.938 kB / 434.5 MB, free: 17.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.309, allocations: 130.9 kB / 434.7 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.309, allocations: 0 / 434.7 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.3091, allocations: 5.156 kB / 434.7 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.3091, allocations: 6.875 kB / 434.7 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.3092, allocations: 96.45 kB / 434.8 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005396/0.3097, allocations: 0.5798 MB / 435.3 MB, free: 17.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/0.31, allocations: 130.2 kB / 435.5 MB, free: 17.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05238/0.3623, allocations: 32.45 MB / 467.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.3624, allocations: 36.03 kB / 467.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.204e-06/0.3624, allocations: 0 / 467.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006206/0.3631, allocations: 396.9 kB / 468.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.3631, allocations: 80.11 kB / 468.4 MB, free: 4.676 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.539e-05/0.3632, allocations: 115.1 kB / 468.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.3632, allocations: 26.55 kB / 468.6 MB, free: 4.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.91e-05/0.3633, allocations: 91.47 kB / 468.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.574e-05/0.3633, allocations: 83.75 kB / 468.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-06/0.3633, allocations: 3.75 kB / 468.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.3635, allocations: 321.9 kB / 469 MB, free: 20.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.864e-05/0.3636, allocations: 49 kB / 469.1 MB, free: 20.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.357e-05/0.3637, allocations: 65.67 kB / 469.2 MB, free: 20.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7e-05/0.3638, allocations: 52.19 kB / 469.2 MB, free: 20.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3638, allocations: 0 / 469.2 MB, free: 20.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001919/0.364, allocations: 173.9 kB / 469.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.364, allocations: 7.875 kB / 469.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.364, allocations: 0 / 469.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.364, allocations: 0 / 469.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.989e-05/0.3641, allocations: 23.17 kB / 469.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.3641, allocations: 0 / 469.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.921e-05/0.3642, allocations: 19.22 kB / 469.4 MB, free: 20.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.3642, allocations: 7.25 kB / 469.4 MB, free: 20.02 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.385e-05/0.3643, allocations: 115.3 kB / 469.5 MB, free: 19.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.506e-05/0.3644, allocations: 15.58 kB / 469.6 MB, free: 19.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00035/0.3647, allocations: 309.8 kB / 469.9 MB, free: 19.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002121/0.3649, allocations: 234.4 kB / 470.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.365, allocations: 5.422 kB / 470.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.361e-06/0.365, allocations: 3.797 kB / 470.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007084/0.3657, allocations: 0.7553 MB / 470.9 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3657, allocations: 0 / 470.9 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.3658, allocations: 44.05 kB / 470.9 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3658, allocations: 6.188 kB / 470.9 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.3659, allocations: 5.625 kB / 470.9 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3659, allocations: 6.031 kB / 470.9 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3659, allocations: 0 / 470.9 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004122/0.3663, allocations: 0.5379 MB / 471.5 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.622e-05/0.3664, allocations: 99.48 kB / 471.6 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.3664, allocations: 6.938 kB / 471.6 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.3665, allocations: 14.92 kB / 471.6 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.483e-05/0.3666, allocations: 13.36 kB / 471.6 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.3666, allocations: 13.95 kB / 471.6 MB, free: 18.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.27e-05/0.3666, allocations: 87.84 kB / 471.7 MB, free: 18.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3666, allocations: 0 / 471.7 MB, free: 18.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003104/0.3697, allocations: 0.9212 MB / 472.6 MB, free: 18.73 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.004909/0.3747, allocations: 2.46 MB / 475.1 MB, free: 17.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003221/0.375, allocations: 245.8 kB / 475.3 MB, free: 17.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.375, allocations: 3.094 kB / 475.3 MB, free: 17.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.3751, allocations: 121.3 kB / 475.4 MB, free: 17.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008023/0.3759, allocations: 145.3 kB / 475.6 MB, free: 17.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002934/0.3789, allocations: 1.56 MB / 477.1 MB, free: 16.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.3792, allocations: 0.742 MB / 477.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.3794, allocations: 48.16 kB / 477.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.803e-05/0.3795, allocations: 62.14 kB / 478 MB, free: 15.6 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3795, allocations: 0 / 478 MB, free: 15.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05167/0.4311, allocations: 29.91 MB / 0.496 GB, free: 2.598 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002017/0.4314, allocations: 187.1 kB / 0.4962 GB, free: 2.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.666/3.097, allocations: 0 / 0.4962 GB, free: 2.359 MB / 366.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/linux/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) Environment - environmentSimulation: