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.005278/0.005278, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001391/0.001391, allocations: 190.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.371/1.371, allocations: 205.1 MB / 222.6 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05034/0.05034, allocations: 9.101 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.002078/0.002078, allocations: 67.88 kB / 387 MB, free: 8.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2311, allocations: 48.16 MB / 435.1 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01723/0.2483, allocations: 17.42 MB / 452.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01724/0.2656, allocations: 16.92 MB / 469.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.2658, allocations: 1.062 kB / 469.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008043/0.2666, allocations: 289.6 kB / 469.8 MB, free: 12.38 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.01667/0.2833, allocations: 6.115 MB / 475.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001548/0.2849, allocations: 0.5675 MB / 476.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000242/0.2851, allocations: 203 kB / 476.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.669e-05/0.2852, allocations: 5.125 kB / 476.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/0.2853, allocations: 87.64 kB / 476.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.2854, allocations: 67.7 kB / 476.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.202e-05/0.2855, allocations: 0 / 476.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0181/0.3036, allocations: 9.931 MB / 486.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.032e-05/0.3036, allocations: 19.8 kB / 486.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.3038, allocations: 47.75 kB / 486.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0112/0.315, allocations: 4.021 MB / 490.8 MB, free: 8.992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.315, allocations: 0 / 490.8 MB, free: 8.992 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.315, allocations: 8 kB / 490.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.315, allocations: 0 / 490.8 MB, free: 8.984 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.001814/0.3169, allocations: 0.9122 MB / 491.7 MB, free: 8.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3169, allocations: 12.03 kB / 491.8 MB, free: 8.008 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.362e-05/0.317, allocations: 46.55 kB / 491.8 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.3171, allocations: 27.83 kB / 491.8 MB, free: 7.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.3174, allocations: 198.9 kB / 492 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.3174, allocations: 11.98 kB / 492 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.3174, allocations: 12 kB / 492 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.3177, allocations: 127.2 kB / 492.2 MB, free: 7.531 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.3177, allocations: 3.938 kB / 492.2 MB, free: 7.527 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.3177, allocations: 3.938 kB / 492.2 MB, free: 7.523 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.3177, allocations: 11.98 kB / 492.2 MB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.3179, allocations: 95.94 kB / 492.3 MB, free: 7.418 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007058/0.3186, allocations: 0.5699 MB / 492.8 MB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.3188, allocations: 125.1 kB / 493 MB, free: 6.629 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.319, allocations: 81.77 kB / 493.1 MB, free: 6.543 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0631/0.3821, allocations: 33.18 MB / 0.5139 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.3821, allocations: 34.56 kB / 0.5139 GB, free: 15.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.535e-06/0.3821, allocations: 4 kB / 0.5139 GB, free: 15.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006223/0.3828, allocations: 225.4 kB / 0.5142 GB, free: 15.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.3828, allocations: 77.11 kB / 0.5142 GB, free: 15.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.383, allocations: 121.8 kB / 0.5143 GB, free: 15.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.383, allocations: 29.7 kB / 0.5144 GB, free: 15.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.39e-05/0.383, allocations: 92.53 kB / 0.5145 GB, free: 15.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.278e-05/0.3831, allocations: 79.27 kB / 0.5145 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.008e-05/0.3832, allocations: 37.7 kB / 0.5146 GB, free: 15.08 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3833, allocations: 326.8 kB / 0.5149 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.416e-05/0.3834, allocations: 43.98 kB / 0.5149 GB, free: 14.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.328e-05/0.3835, allocations: 65.7 kB / 0.515 GB, free: 14.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.3837, allocations: 121.8 kB / 0.5151 GB, free: 14.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3837, allocations: 0 / 0.5151 GB, free: 14.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000252/0.384, allocations: 165.6 kB / 0.5153 GB, free: 14.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.384, allocations: 8 kB / 0.5153 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.384, allocations: 3.984 kB / 0.5153 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.384, allocations: 3.938 kB / 0.5153 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.3841, allocations: 23.98 kB / 0.5153 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.3841, allocations: 4.156 kB / 0.5153 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.843e-05/0.3842, allocations: 7.891 kB / 0.5153 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.3842, allocations: 8.125 kB / 0.5153 GB, free: 14.29 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.627e-05/0.3843, allocations: 117.8 kB / 0.5154 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.3844, allocations: 11.95 kB / 0.5154 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004779/0.3849, allocations: 341.7 kB / 0.5158 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003273/0.3852, allocations: 233.5 kB / 0.516 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3852, allocations: 0 / 0.516 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3852, allocations: 0 / 0.516 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009529/0.3862, allocations: 0.7619 MB / 0.5167 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3862, allocations: 0 / 0.5167 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.3864, allocations: 39.92 kB / 0.5168 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3864, allocations: 7.984 kB / 0.5168 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.3864, allocations: 8 kB / 0.5168 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3864, allocations: 0 / 0.5168 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3864, allocations: 0 / 0.5168 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005779/0.387, allocations: 0.5298 MB / 0.5173 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.282e-05/0.3871, allocations: 96.92 kB / 0.5174 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.3871, allocations: 8 kB / 0.5174 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.3872, allocations: 8.062 kB / 0.5174 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.03e-05/0.3873, allocations: 15.97 kB / 0.5174 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.3873, allocations: 11.94 kB / 0.5174 GB, free: 12.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.463e-05/0.3874, allocations: 99.2 kB / 0.5175 GB, free: 11.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3874, allocations: 0 / 0.5175 GB, free: 11.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002185/0.3896, allocations: 0.9423 MB / 0.5185 GB, free: 10.97 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.004532/0.3941, allocations: 2.409 MB / 0.5208 GB, free: 8.527 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004096/0.3945, allocations: 251.2 kB / 0.521 GB, free: 8.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3945, allocations: 0 / 0.521 GB, free: 8.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.3947, allocations: 127.8 kB / 0.5212 GB, free: 8.145 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009454/0.3957, allocations: 140.9 kB / 0.5213 GB, free: 8.008 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003472/0.3992, allocations: 2.446 MB / 0.5237 GB, free: 5.465 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.3995, allocations: 0.7328 MB / 0.5244 GB, free: 4.707 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.3997, allocations: 41.95 kB / 0.5244 GB, free: 4.668 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.3998, allocations: 67.36 kB / 0.5245 GB, free: 4.602 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3998, allocations: 0 / 0.5245 GB, free: 4.602 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06673/0.4665, allocations: 30.65 MB / 0.5544 GB, free: 5.945 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.879/10.35, allocations: 18.3 kB / 0.5545 GB, free: 5.93 MB / 446.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)