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.005881/0.005881, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001289/0.001289, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.365/1.365, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05138/0.05138, allocations: 9.103 MB / 279 MB, free: 12.08 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.002069/0.002069, allocations: 71.84 kB / 387 MB, free: 8.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2445, allocations: 48.16 MB / 435.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01898/0.2635, allocations: 17.35 MB / 452.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01753/0.2811, allocations: 16.8 MB / 469.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.2812, allocations: 4.875 kB / 469.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008131/0.2821, allocations: 272.1 kB / 469.6 MB, free: 12.54 MB / 350.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.01898/0.3011, allocations: 6.029 MB / 475.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001605/0.3027, allocations: 0.5401 MB / 476.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.3029, allocations: 183 kB / 476.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.226e-05/0.303, allocations: 13.11 kB / 476.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.3031, allocations: 79.64 kB / 476.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.863e-05/0.3032, allocations: 51.78 kB / 476.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.3033, allocations: 8 kB / 476.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01868/0.322, allocations: 9.541 MB / 486 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.168e-05/0.322, allocations: 19.91 kB / 486 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.853e-05/0.3221, allocations: 47.81 kB / 486.1 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01126/0.3334, allocations: 4.017 MB / 490.1 MB, free: 9.691 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3334, allocations: 0 / 490.1 MB, free: 9.691 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3335, allocations: 4 kB / 490.1 MB, free: 9.688 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.3335, allocations: 0 / 490.1 MB, free: 9.688 MB / 366.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.00192/0.3354, allocations: 0.9161 MB / 491 MB, free: 8.719 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.3355, allocations: 12.03 kB / 491 MB, free: 8.707 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.441e-05/0.3355, allocations: 46.55 kB / 491.1 MB, free: 8.652 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.3357, allocations: 31.77 kB / 491.1 MB, free: 8.621 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.336, allocations: 206.8 kB / 491.3 MB, free: 8.379 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.336, allocations: 4 kB / 491.3 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.336, allocations: 8 kB / 491.3 MB, free: 8.367 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.3363, allocations: 127.3 kB / 491.4 MB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.3363, allocations: 4 kB / 491.5 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.3363, allocations: 3.938 kB / 491.5 MB, free: 8.223 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.3363, allocations: 11.98 kB / 491.5 MB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001466/0.3365, allocations: 91.95 kB / 491.6 MB, free: 8.121 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007657/0.3372, allocations: 0.5739 MB / 492.1 MB, free: 7.469 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002638/0.3375, allocations: 129.1 kB / 492.3 MB, free: 7.324 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.3376, allocations: 77.77 kB / 492.3 MB, free: 7.242 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06322/0.4009, allocations: 33.17 MB / 0.5132 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.4009, allocations: 38.5 kB / 0.5132 GB, free: 0.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.104e-06/0.401, allocations: 4 kB / 0.5132 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006399/0.4016, allocations: 225.4 kB / 0.5134 GB, free: 276 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.4017, allocations: 77.11 kB / 0.5135 GB, free: 180 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.4018, allocations: 121.8 kB / 0.5136 GB, free: 48 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.4018, allocations: 29.7 kB / 0.5137 GB, free: 12 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.904e-05/0.4019, allocations: 96.52 kB / 0.5137 GB, free: 15.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.087e-05/0.402, allocations: 79.27 kB / 0.5138 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.486e-05/0.4021, allocations: 33.7 kB / 0.5139 GB, free: 15.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.4022, allocations: 334.8 kB / 0.5142 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.991e-05/0.4023, allocations: 39.98 kB / 0.5142 GB, free: 15.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.967e-05/0.4024, allocations: 73.69 kB / 0.5143 GB, free: 15.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.4026, allocations: 125.8 kB / 0.5144 GB, free: 15.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4026, allocations: 0 / 0.5144 GB, free: 15.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002607/0.4029, allocations: 165.6 kB / 0.5146 GB, free: 15.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.4029, allocations: 8 kB / 0.5146 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.4029, allocations: 0 / 0.5146 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.403, allocations: 0 / 0.5146 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.993e-05/0.4031, allocations: 19.94 kB / 0.5146 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.4031, allocations: 7.984 kB / 0.5146 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.777e-05/0.4031, allocations: 12.2 kB / 0.5146 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.4032, allocations: 12 kB / 0.5146 GB, free: 14.98 MB / 414.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.692e-05/0.4033, allocations: 117.8 kB / 0.5147 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.655e-05/0.4033, allocations: 11.95 kB / 0.5147 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004933/0.4038, allocations: 325.4 kB / 0.5151 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003106/0.4041, allocations: 233.5 kB / 0.5153 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4042, allocations: 0 / 0.5153 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.4042, allocations: 7.984 kB / 0.5153 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009944/0.4052, allocations: 0.758 MB / 0.516 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.4052, allocations: 0 / 0.516 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.4054, allocations: 39.92 kB / 0.5161 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.4054, allocations: 0 / 0.5161 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.4054, allocations: 8 kB / 0.5161 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.4054, allocations: 128 / 0.5161 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.4054, allocations: 8 kB / 0.5161 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006125/0.406, allocations: 0.5298 MB / 0.5166 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.505e-05/0.4061, allocations: 96.97 kB / 0.5167 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.4061, allocations: 8 kB / 0.5167 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.4063, allocations: 3.984 kB / 0.5167 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.633e-05/0.4063, allocations: 15.98 kB / 0.5167 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.4063, allocations: 8 kB / 0.5167 GB, free: 12.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.601e-05/0.4064, allocations: 107.2 kB / 0.5168 GB, free: 12.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4064, allocations: 0 / 0.5168 GB, free: 12.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002405/0.4088, allocations: 0.9423 MB / 0.5177 GB, free: 11.68 MB / 414.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.004657/0.4135, allocations: 2.417 MB / 0.5201 GB, free: 9.227 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004024/0.4139, allocations: 251.2 kB / 0.5203 GB, free: 8.969 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.4139, allocations: 0 / 0.5203 GB, free: 8.969 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.4141, allocations: 123.8 kB / 0.5205 GB, free: 8.848 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009548/0.4151, allocations: 149.1 kB / 0.5206 GB, free: 8.703 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003207/0.4183, allocations: 2.434 MB / 0.523 GB, free: 6.172 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.4187, allocations: 0.7367 MB / 0.5237 GB, free: 5.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.4188, allocations: 41.98 kB / 0.5237 GB, free: 5.371 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.419, allocations: 63.42 kB / 0.5238 GB, free: 5.309 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.419, allocations: 0 / 0.5238 GB, free: 5.309 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0669/0.4859, allocations: 30.65 MB / 0.5537 GB, free: 6.652 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.481/9.967, allocations: 19.67 kB / 0.5538 GB, free: 6.633 MB / 446.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)