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.001311/0.001311, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.471/1.471, allocations: 205.1 MB / 222.4 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04769/0.04769, allocations: 9.089 MB / 278.8 MB, free: 12.18 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.001472/0.001472, allocations: 79.83 kB / 338.1 MB, free: 25.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.09107, allocations: 48.15 MB / 386.3 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.0194/0.1105, allocations: 17.41 MB / 403.7 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01624/0.1268, allocations: 16.92 MB / 420.6 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.699e-05/0.1269, allocations: 0 / 420.6 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007497/0.1277, allocations: 283.1 kB / 420.9 MB, free: 6.383 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.01639/0.1441, allocations: 6.117 MB / 427 MB, free: 256 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1885/0.3327, allocations: 0.5527 MB / 427.6 MB, free: 18.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002544/0.3329, allocations: 209.1 kB / 427.8 MB, free: 18.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.238e-05/0.333, allocations: 12.73 kB / 427.8 MB, free: 18.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.3331, allocations: 87.67 kB / 427.9 MB, free: 18.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.991e-05/0.3333, allocations: 54.28 kB / 427.9 MB, free: 18.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.3333, allocations: 2.719 kB / 427.9 MB, free: 18.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01621/0.3495, allocations: 9.571 MB / 437.5 MB, free: 18.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.033e-05/0.3496, allocations: 22.33 kB / 437.5 MB, free: 18.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.3497, allocations: 47.48 kB / 437.6 MB, free: 18.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007913/0.3576, allocations: 4.025 MB / 441.6 MB, free: 18.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3576, allocations: 1.156 kB / 441.6 MB, free: 18.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3576, allocations: 4 kB / 441.6 MB, free: 18.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.3577, allocations: 0 / 441.6 MB, free: 18.07 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.001476/0.3591, allocations: 0.8928 MB / 442.5 MB, free: 17.44 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.3592, allocations: 8.5 kB / 442.5 MB, free: 17.44 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.066e-05/0.3592, allocations: 40.08 kB / 442.5 MB, free: 17.4 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.3594, allocations: 24.72 kB / 442.6 MB, free: 17.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.3595, allocations: 203.5 kB / 442.8 MB, free: 17.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.101e-06/0.3596, allocations: 0 / 442.8 MB, free: 17.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.322e-05/0.3596, allocations: 15.03 kB / 442.8 MB, free: 17.19 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.3598, allocations: 128.3 kB / 442.9 MB, free: 17.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.3598, allocations: 0 / 442.9 MB, free: 17.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.3598, allocations: 4.578 kB / 442.9 MB, free: 17.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.3598, allocations: 5 kB / 442.9 MB, free: 17.14 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.3599, allocations: 103.3 kB / 443 MB, free: 17.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005289/0.3605, allocations: 0.5726 MB / 443.6 MB, free: 16.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.3607, allocations: 126.8 kB / 443.7 MB, free: 16.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.619e-05/0.3608, allocations: 84.08 kB / 443.8 MB, free: 16.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05431/0.4151, allocations: 33.16 MB / 477 MB, free: 16.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.4152, allocations: 37.72 kB / 477 MB, free: 16.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.735e-06/0.4152, allocations: 7.469 kB / 477 MB, free: 16.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.000637/0.4159, allocations: 241.6 kB / 477.2 MB, free: 16.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.4159, allocations: 77.11 kB / 477.3 MB, free: 16.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.416, allocations: 121.6 kB / 477.4 MB, free: 16.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.4161, allocations: 25.7 kB / 477.5 MB, free: 16.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.014e-05/0.4161, allocations: 92.06 kB / 477.5 MB, free: 16.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.533e-05/0.4162, allocations: 76.38 kB / 477.6 MB, free: 16.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.4162, allocations: 33.58 kB / 477.7 MB, free: 16.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.4164, allocations: 330.5 kB / 478 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.653e-05/0.4165, allocations: 39.61 kB / 478 MB, free: 15.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.647e-05/0.4165, allocations: 80.03 kB / 478.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.4167, allocations: 115.4 kB / 478.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4167, allocations: 2.516 kB / 478.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002312/0.4169, allocations: 170.8 kB / 478.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.417, allocations: 8 kB / 478.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.417, allocations: 0 / 478.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.417, allocations: 4 kB / 478.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.432e-05/0.4171, allocations: 22.98 kB / 478.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.4171, allocations: 3.938 kB / 478.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.449e-05/0.4172, allocations: 11.84 kB / 478.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.4172, allocations: 7.938 kB / 478.4 MB, free: 15.51 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 9.711e-05/0.4173, allocations: 115.8 kB / 478.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.872e-05/0.4174, allocations: 11.91 kB / 478.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003927/0.4178, allocations: 318.4 kB / 478.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002375/0.418, allocations: 244.2 kB / 479.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.418, allocations: 7.938 kB / 479.1 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.4181, allocations: 3.984 kB / 479.1 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008313/0.4189, allocations: 0.7502 MB / 479.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.4189, allocations: 0 / 479.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.4191, allocations: 43.08 kB / 479.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.4191, allocations: 7.891 kB / 479.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.4191, allocations: 8 kB / 479.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.4191, allocations: 0 / 479.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.4191, allocations: 1.875 kB / 479.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00057/0.4197, allocations: 0.522 MB / 480.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.82e-05/0.4198, allocations: 100.9 kB / 480.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.4198, allocations: 4 kB / 480.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.4199, allocations: 8.062 kB / 480.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.42, allocations: 19.92 kB / 480.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.42, allocations: 8 kB / 480.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.751e-05/0.4201, allocations: 91.27 kB / 480.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4201, allocations: 0 / 480.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003213/0.4233, allocations: 0.928 MB / 481.6 MB, free: 12.55 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.006056/0.4294, allocations: 2.394 MB / 484 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004309/0.4298, allocations: 259.9 kB / 484.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4298, allocations: 0 / 484.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.43, allocations: 122.6 kB / 484.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009815/0.431, allocations: 149 kB / 484.5 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003862/0.4348, allocations: 2.427 MB / 486.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.4352, allocations: 0.7328 MB / 487.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001589/0.4354, allocations: 45.89 kB / 487.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.4355, allocations: 63.42 kB / 487.8 MB, free: 6.426 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4355, allocations: 0 / 487.8 MB, free: 6.426 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06868/0.5042, allocations: 30.61 MB / 0.5062 GB, free: 7.844 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.664/10.17, allocations: 15.75 kB / 0.5063 GB, free: 7.828 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)