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.0008625/0.0008624, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006986/0.006987, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.608/1.608, allocations: 205.4 MB / 222.4 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04522/0.04522, allocations: 9.071 MB / 279.8 MB, free: 12.13 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.0005184/0.0005184, allocations: 16 kB / 339.8 MB, free: 25.52 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1142, allocations: 49.17 MB / 389 MB, free: 8.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01999/0.1342, allocations: 17.15 MB / 406.2 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01742/0.1517, allocations: 17.06 MB / 423.2 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.1519, allocations: 0 / 423.2 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009125/0.1528, allocations: 251.3 kB / 423.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01748/0.1703, allocations: 5.288 MB / 428.8 MB, free: 444 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2372/0.4075, allocations: 469.6 kB / 429.2 MB, free: 18.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003464/0.4079, allocations: 204.9 kB / 429.4 MB, free: 18.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.911e-05/0.4079, allocations: 7.656 kB / 429.4 MB, free: 18.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001595/0.4081, allocations: 87.22 kB / 429.5 MB, free: 18.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.4082, allocations: 59.64 kB / 429.6 MB, free: 18.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.4083, allocations: 3.281 kB / 429.6 MB, free: 18.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02081/0.4291, allocations: 9.148 MB / 438.7 MB, free: 18.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.4292, allocations: 21.25 kB / 438.7 MB, free: 18.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.4294, allocations: 74.33 kB / 438.8 MB, free: 18.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01408/0.4435, allocations: 3.88 MB / 442.7 MB, free: 17.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.796e-06/0.4435, allocations: 2.734 kB / 442.7 MB, free: 17.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.4435, allocations: 1.312 kB / 442.7 MB, free: 17.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.4435, allocations: 0 / 442.7 MB, free: 17.98 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.002625/0.4462, allocations: 0.8852 MB / 443.6 MB, free: 17.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.901e-05/0.4463, allocations: 9.5 kB / 443.6 MB, free: 17.3 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.069e-05/0.4463, allocations: 44.45 kB / 443.6 MB, free: 17.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001996/0.4465, allocations: 26.73 kB / 443.7 MB, free: 17.26 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.4468, allocations: 203.1 kB / 443.9 MB, free: 17.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.4468, allocations: 6.25 kB / 443.9 MB, free: 17.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.774e-05/0.4468, allocations: 8.875 kB / 443.9 MB, free: 17.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002158/0.4471, allocations: 124.4 kB / 444 MB, free: 16.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.4471, allocations: 4.438 kB / 444 MB, free: 16.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.4471, allocations: 3.625 kB / 444 MB, free: 16.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.4471, allocations: 1.875 kB / 444 MB, free: 16.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.4473, allocations: 101.4 kB / 444.1 MB, free: 16.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000654/0.4479, allocations: 0.5698 MB / 444.7 MB, free: 16.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002607/0.4482, allocations: 127.5 kB / 444.8 MB, free: 16.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.4483, allocations: 83.12 kB / 444.9 MB, free: 16.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05613/0.5045, allocations: 32.34 MB / 477.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.473e-05/0.5046, allocations: 38.12 kB / 477.3 MB, free: 16.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 4.358e-06/0.5046, allocations: 0 / 477.3 MB, free: 16.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008089/0.5054, allocations: 232.8 kB / 477.5 MB, free: 16.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.5055, allocations: 77.11 kB / 477.6 MB, free: 16.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.5057, allocations: 126 kB / 477.7 MB, free: 16.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.5057, allocations: 29.52 kB / 477.7 MB, free: 16.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.5058, allocations: 91.94 kB / 477.8 MB, free: 16.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.905e-05/0.5058, allocations: 79.3 kB / 477.9 MB, free: 16.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.957e-05/0.5059, allocations: 20.58 kB / 477.9 MB, free: 16.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.506, allocations: 329.2 kB / 478.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.456e-05/0.5061, allocations: 42.8 kB / 478.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.368e-05/0.5061, allocations: 68.41 kB / 478.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.5063, allocations: 120.2 kB / 478.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5063, allocations: 0 / 478.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002435/0.5066, allocations: 168.5 kB / 478.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.5066, allocations: 6.062 kB / 478.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.5066, allocations: 3.594 kB / 478.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.5066, allocations: 4 kB / 478.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.023e-05/0.5067, allocations: 22.47 kB / 478.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.5067, allocations: 7.5 kB / 478.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.654e-05/0.5069, allocations: 10.8 kB / 478.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.5069, allocations: 11.97 kB / 478.7 MB, free: 15.84 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.000112/0.507, allocations: 117.2 kB / 478.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.799e-05/0.5071, allocations: 12.45 kB / 478.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004508/0.5075, allocations: 307.7 kB / 479.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000312/0.5078, allocations: 246 kB / 479.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.5079, allocations: 3.938 kB / 479.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.5079, allocations: 3.984 kB / 479.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000985/0.5089, allocations: 0.7541 MB / 480.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.5089, allocations: 0 / 480.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.509, allocations: 45.3 kB / 480.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.509, allocations: 3.281 kB / 480.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.5091, allocations: 7.25 kB / 480.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.5091, allocations: 0 / 480.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5091, allocations: 3.938 kB / 480.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005801/0.5097, allocations: 0.5226 MB / 480.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.549e-05/0.5097, allocations: 101.3 kB / 480.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.916e-05/0.5098, allocations: 14.86 kB / 480.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.5099, allocations: 6.5 kB / 480.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.319e-05/0.51, allocations: 17.11 kB / 480.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.51, allocations: 5.438 kB / 480.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.596e-05/0.51, allocations: 97.39 kB / 480.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.51, allocations: 0 / 480.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003956/0.514, allocations: 0.921 MB / 481.8 MB, free: 13.53 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.005005/0.519, allocations: 2.395 MB / 484.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003602/0.5194, allocations: 249.8 kB / 484.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5194, allocations: 0 / 484.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.5195, allocations: 112.6 kB / 484.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.5206, allocations: 152 kB / 484.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/0.5242, allocations: 2.524 MB / 487.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.5246, allocations: 0.7384 MB / 488 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000153/0.5248, allocations: 41.89 kB / 488 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.5249, allocations: 61.73 kB / 488.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5249, allocations: 0 / 488.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06607/0.591, allocations: 30.21 MB / 0.5062 GB, free: 9.73 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002092/0.5912, allocations: 217.9 kB / 0.5064 GB, free: 9.469 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3/3.591, allocations: 4 kB / 0.5064 GB, free: 9.465 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)