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.001588/0.001588, 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.002116/0.002116, allocations: 192.4 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.587/1.587, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04748/0.04748, allocations: 9.095 MB / 278.9 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.001461/0.001461, allocations: 67.84 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09831/0.09978, allocations: 48.17 MB / 386.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.02145/0.1213, allocations: 17.35 MB / 403.7 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01703/0.1384, allocations: 16.8 MB / 420.5 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.1385, allocations: 3.938 kB / 420.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008144/0.1394, allocations: 271.1 kB / 420.7 MB, free: 6.566 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.01743/0.1568, allocations: 6.026 MB / 426.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2186/0.3755, allocations: 0.5341 MB / 427.3 MB, free: 18.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003223/0.3758, allocations: 191.3 kB / 427.5 MB, free: 18.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.539e-05/0.3759, allocations: 8.016 kB / 427.5 MB, free: 18.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.3761, allocations: 78.91 kB / 427.6 MB, free: 18.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.3762, allocations: 59.66 kB / 427.6 MB, free: 18.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.3762, allocations: 3.406 kB / 427.6 MB, free: 18.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01938/0.3956, allocations: 9.176 MB / 436.8 MB, free: 18.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.118e-05/0.3957, allocations: 23.72 kB / 436.8 MB, free: 18.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.3958, allocations: 54.02 kB / 436.9 MB, free: 18.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01214/0.4079, allocations: 4.008 MB / 440.9 MB, free: 18.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/0.408, allocations: 6.047 kB / 440.9 MB, free: 18.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.408, allocations: 0 / 440.9 MB, free: 18.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.408, allocations: 0 / 440.9 MB, free: 18.38 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.002875/0.4109, allocations: 0.8853 MB / 441.8 MB, free: 17.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.4109, allocations: 9.125 kB / 441.8 MB, free: 17.76 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.62e-05/0.411, allocations: 45.62 kB / 441.8 MB, free: 17.72 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.4112, allocations: 22.02 kB / 441.8 MB, free: 17.71 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000212/0.4114, allocations: 201.3 kB / 442 MB, free: 17.51 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.4115, allocations: 11.33 kB / 442 MB, free: 17.51 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.106e-05/0.4115, allocations: 8 kB / 442.1 MB, free: 17.51 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002009/0.4117, allocations: 128.8 kB / 442.2 MB, free: 17.46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.4117, allocations: 1.375 kB / 442.2 MB, free: 17.46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.4117, allocations: 3.562 kB / 442.2 MB, free: 17.46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.4118, allocations: 6.281 kB / 442.2 MB, free: 17.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.4119, allocations: 103.3 kB / 442.3 MB, free: 17.46 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005912/0.4125, allocations: 0.5672 MB / 442.9 MB, free: 16.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.4128, allocations: 135 kB / 443 MB, free: 16.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.4129, allocations: 80.72 kB / 443.1 MB, free: 16.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05984/0.4727, allocations: 33.17 MB / 476.2 MB, free: 17.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.043e-05/0.4728, allocations: 37.5 kB / 476.3 MB, free: 17.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.505e-06/0.4728, allocations: 0 / 476.3 MB, free: 17.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007033/0.4735, allocations: 230.6 kB / 476.5 MB, free: 17.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.4736, allocations: 80.67 kB / 476.6 MB, free: 17.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.4737, allocations: 125.4 kB / 476.7 MB, free: 17.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.4738, allocations: 25.7 kB / 476.7 MB, free: 17.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.926e-05/0.4738, allocations: 90.92 kB / 476.8 MB, free: 16.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.055e-05/0.4739, allocations: 83 kB / 476.9 MB, free: 16.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.311e-05/0.474, allocations: 33.52 kB / 476.9 MB, free: 16.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4741, allocations: 326.4 kB / 477.3 MB, free: 16.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.503e-05/0.4742, allocations: 39.86 kB / 477.3 MB, free: 16.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.253e-05/0.4743, allocations: 70.42 kB / 477.4 MB, free: 16.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.4745, allocations: 117 kB / 477.5 MB, free: 16.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.4745, allocations: 4 kB / 477.5 MB, free: 16.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002332/0.4747, allocations: 168.4 kB / 477.6 MB, free: 16.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.4748, allocations: 7.984 kB / 477.6 MB, free: 16.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4748, allocations: 4 kB / 477.7 MB, free: 16.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.4748, allocations: 0 / 477.7 MB, free: 16.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.885e-05/0.4749, allocations: 20.5 kB / 477.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.4749, allocations: 4.484 kB / 477.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.045e-05/0.475, allocations: 13.38 kB / 477.7 MB, free: 16.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.475, allocations: 4 kB / 477.7 MB, free: 16.23 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.0001122/0.4751, allocations: 128.9 kB / 477.8 MB, free: 16.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.951e-05/0.4752, allocations: 7.906 kB / 477.8 MB, free: 16.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003901/0.4756, allocations: 309.8 kB / 478.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002386/0.4759, allocations: 249.8 kB / 478.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.4759, allocations: 5 kB / 478.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.4759, allocations: 8 kB / 478.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008544/0.4767, allocations: 0.7567 MB / 479.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.4768, allocations: 0 / 479.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001439/0.4769, allocations: 39.45 kB / 479.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.4769, allocations: 0 / 479.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.4769, allocations: 7.875 kB / 479.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.676e-06/0.477, allocations: 0.875 kB / 479.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.477, allocations: 0.5469 kB / 479.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004811/0.4774, allocations: 0.5248 MB / 479.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.107e-05/0.4775, allocations: 92.89 kB / 479.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.4776, allocations: 7.938 kB / 479.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.4777, allocations: 3.938 kB / 479.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.4777, allocations: 23.78 kB / 479.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.4778, allocations: 12.06 kB / 479.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.938e-05/0.4778, allocations: 91.2 kB / 479.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4778, allocations: 0 / 479.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003067/0.4809, allocations: 0.9231 MB / 480.9 MB, free: 13.46 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.007013/0.4879, allocations: 2.417 MB / 483.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004591/0.4884, allocations: 254.2 kB / 483.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4884, allocations: 0 / 483.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001625/0.4886, allocations: 127.6 kB / 483.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009686/0.4896, allocations: 149.7 kB / 483.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004083/0.4937, allocations: 2.415 MB / 486.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.494, allocations: 0.7352 MB / 487 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002021/0.4942, allocations: 42.05 kB / 487 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.4944, allocations: 67.41 kB / 487.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4944, allocations: 4 kB / 487.1 MB, free: 7.406 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07162/0.566, allocations: 30.61 MB / 0.5055 GB, free: 8.824 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.503/10.07, allocations: 19.69 kB / 0.5056 GB, free: 8.805 MB / 382.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)