Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.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.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",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.004654/0.004654, allocations: 99.58 kB / 15.73 MB, free: 6.039 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.001226/0.001227, allocations: 193.6 kB / 16.67 MB, free: 5.961 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.395/1.395, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05093/0.05093, allocations: 9.091 MB / 279 MB, free: 12.06 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.002054/0.002054, allocations: 71.91 kB / 387 MB, free: 8.488 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.245, allocations: 48.15 MB / 435.1 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.0135/0.2585, allocations: 12.82 MB / 448 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.2689, allocations: 8.579 MB / 456.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.2691, allocations: 1.094 kB / 456.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.2693, allocations: 43.22 kB / 456.6 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005915/0.2752, allocations: 1.886 MB / 458.5 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006409/0.2817, allocations: 2.269 MB / 460.7 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.2819, allocations: 122.4 kB / 460.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.081e-05/0.2819, allocations: 4.469 kB / 460.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.677e-05/0.282, allocations: 46.77 kB / 460.9 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.86e-05/0.2821, allocations: 55.08 kB / 461 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.283e-05/0.2821, allocations: 2.812 kB / 461 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01348/0.2956, allocations: 6.925 MB / 467.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.751e-05/0.2957, allocations: 11.88 kB / 467.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.2958, allocations: 51.8 kB / 468 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007953/0.3037, allocations: 3.789 MB / 471.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3038, allocations: 0 / 471.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3038, allocations: 0 / 471.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3038, allocations: 0 / 471.7 MB, free: 12.11 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.00242/0.3062, allocations: 0.8939 MB / 472.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3063, allocations: 8.031 kB / 472.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.747e-05/0.3063, allocations: 46.75 kB / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003539/0.3067, allocations: 48.8 kB / 472.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.307, allocations: 204.2 kB / 472.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.307, allocations: 8.312 kB / 472.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.417e-05/0.307, allocations: 15.95 kB / 473 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008565/0.3079, allocations: 259.2 kB / 473.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.3079, allocations: 0 / 473.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.3079, allocations: 0 / 473.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.308, allocations: 8 kB / 473.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007621/0.3087, allocations: 215.7 kB / 473.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008021/0.3095, allocations: 0.6663 MB / 474.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008881/0.3104, allocations: 248.9 kB / 474.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.819e-05/0.3105, allocations: 49.75 kB / 474.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.138/0.4486, allocations: 64.24 MB / 0.526 GB, free: 1.348 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/0.4487, allocations: 34.56 kB / 0.526 GB, free: 1.305 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.785e-06/0.4487, allocations: 4 kB / 0.526 GB, free: 1.301 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.001767/0.4504, allocations: 377.1 kB / 0.5264 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.4505, allocations: 77.11 kB / 0.5265 GB, free: 0.832 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.4507, allocations: 130.1 kB / 0.5266 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.4507, allocations: 33.7 kB / 0.5266 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.146e-05/0.4508, allocations: 92.03 kB / 0.5267 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.065e-05/0.4508, allocations: 51.59 kB / 0.5268 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.451, allocations: 61.62 kB / 0.5268 GB, free: 456 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4511, allocations: 326.8 kB / 0.5271 GB, free: 120 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.4513, allocations: 55.97 kB / 0.5272 GB, free: 64 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.4515, allocations: 87.3 kB / 0.5273 GB, free: 15.96 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000328/0.4518, allocations: 155.9 kB / 0.5274 GB, free: 15.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.4518, allocations: 8 kB / 0.5274 GB, free: 15.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005056/0.4523, allocations: 209.4 kB / 0.5276 GB, free: 15.58 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.4524, allocations: 7.938 kB / 0.5276 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.4524, allocations: 7.938 kB / 0.5277 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.4524, allocations: 0 / 0.5277 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.4526, allocations: 55.95 kB / 0.5277 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.4526, allocations: 3.984 kB / 0.5277 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.4528, allocations: 19.83 kB / 0.5277 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.664e-05/0.4528, allocations: 19.98 kB / 0.5277 GB, free: 15.47 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state_h.phase,state_p.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001214/0.4529, allocations: 121.8 kB / 0.5279 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/0.453, allocations: 11.89 kB / 0.5279 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002355/0.4554, allocations: 2.108 MB / 0.5299 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.4554, allocations: 0 / 0.5299 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.4554, allocations: 4 kB / 0.5299 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.4554, allocations: 3.984 kB / 0.5299 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.4565, allocations: 1.048 MB / 0.531 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.4565, allocations: 0 / 0.531 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002182/0.4567, allocations: 35.97 kB / 0.531 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.4568, allocations: 3.938 kB / 0.531 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.4568, allocations: 7.984 kB / 0.531 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.4568, allocations: 3.938 kB / 0.531 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4568, allocations: 0 / 0.531 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007846/0.4576, allocations: 0.6451 MB / 0.5316 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.412e-05/0.4577, allocations: 100.8 kB / 0.5317 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.4577, allocations: 8 kB / 0.5317 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.4579, allocations: 12 kB / 0.5318 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.526e-05/0.4579, allocations: 7.984 kB / 0.5318 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.4579, allocations: 4 kB / 0.5318 GB, free: 11.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.741e-05/0.458, allocations: 99.27 kB / 0.5319 GB, free: 11.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.458, allocations: 0 / 0.5319 GB, free: 11.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002617/0.4607, allocations: 0.9201 MB / 0.5328 GB, free: 10.18 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_p_int,d_h_int) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * 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.005888/0.4666, allocations: 2.188 MB / 0.5349 GB, free: 7.957 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005214/0.4671, allocations: 211.8 kB / 0.5351 GB, free: 7.75 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.4671, allocations: 4.125 kB / 0.5351 GB, free: 7.746 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.4674, allocations: 159.9 kB / 0.5353 GB, free: 7.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006965/0.4681, allocations: 76.17 kB / 0.5353 GB, free: 7.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004469/0.4726, allocations: 2.594 MB / 0.5379 GB, free: 4.82 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.473, allocations: 0.7328 MB / 0.5386 GB, free: 4.059 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005122/0.4735, allocations: 380.6 kB / 0.5389 GB, free: 3.688 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.4737, allocations: 67.41 kB / 0.539 GB, free: 3.621 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4737, allocations: 0 / 0.539 GB, free: 3.621 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07691/0.5506, allocations: 36.35 MB / 0.5745 GB, free: 15.25 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.77, allocations: 4 kB / 0.5745 GB, free: 15.25 MB / 478.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)