Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.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.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",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.004904/0.004904, allocations: 98.64 kB / 15.73 MB, free: 6.047 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.001273/0.001273, allocations: 194.3 kB / 16.68 MB, free: 5.969 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.357/1.357, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05022/0.05022, allocations: 9.096 MB / 279 MB, free: 12.09 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.003115/0.003115, allocations: 67.91 kB / 387 MB, free: 8.508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2497, allocations: 48.16 MB / 435.1 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01847/0.2682, allocations: 17.43 MB / 452.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01739/0.2856, allocations: 16.91 MB / 469.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.665e-05/0.2857, allocations: 0 / 469.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007244/0.2865, allocations: 289.7 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.0161/0.3026, allocations: 6.314 MB / 476.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001492/0.3041, allocations: 0.5675 MB / 476.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.3044, allocations: 203 kB / 476.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.172e-05/0.3044, allocations: 5.125 kB / 476.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.3046, allocations: 95.62 kB / 476.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.3047, allocations: 55.72 kB / 477 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.3047, allocations: 4 kB / 477 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01786/0.3226, allocations: 10.46 MB / 487.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.825e-05/0.3226, allocations: 19.91 kB / 487.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.589e-05/0.3227, allocations: 47.8 kB / 487.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008992/0.3317, allocations: 4.146 MB / 491.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3318, allocations: 0 / 491.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3318, allocations: 0 / 491.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.3318, allocations: 0 / 491.7 MB, free: 8.125 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.00161/0.3334, allocations: 0.92 MB / 492.6 MB, free: 7.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.3334, allocations: 12.03 kB / 492.6 MB, free: 7.141 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.783e-05/0.3335, allocations: 34.56 kB / 492.6 MB, free: 7.098 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.3337, allocations: 43.81 kB / 492.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.3339, allocations: 194.8 kB / 492.9 MB, free: 6.824 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.3339, allocations: 8 kB / 492.9 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.261e-05/0.334, allocations: 4 kB / 492.9 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.3342, allocations: 131.3 kB / 493 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.3342, allocations: 0 / 493 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.3342, allocations: 7.938 kB / 493 MB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.3342, allocations: 4 kB / 493 MB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001545/0.3344, allocations: 99.89 kB / 493.1 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006876/0.3351, allocations: 0.5738 MB / 493.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002641/0.3353, allocations: 133.1 kB / 493.8 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.3355, allocations: 85.75 kB / 493.9 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0646/0.4001, allocations: 33.16 MB / 0.5147 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.4001, allocations: 34.56 kB / 0.5148 GB, free: 14.94 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.405e-06/0.4002, allocations: 0 / 0.5148 GB, free: 14.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006599/0.4008, allocations: 237.6 kB / 0.515 GB, free: 14.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.4009, allocations: 77.11 kB / 0.5151 GB, free: 14.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.401, allocations: 117.8 kB / 0.5152 GB, free: 14.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.401, allocations: 29.64 kB / 0.5152 GB, free: 14.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.626e-05/0.4011, allocations: 88.53 kB / 0.5153 GB, free: 14.35 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.857e-05/0.4012, allocations: 95.19 kB / 0.5154 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.957e-05/0.4013, allocations: 37.7 kB / 0.5154 GB, free: 14.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4014, allocations: 326.8 kB / 0.5157 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-05/0.4015, allocations: 43.98 kB / 0.5158 GB, free: 13.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.149e-05/0.4016, allocations: 61.69 kB / 0.5158 GB, free: 13.78 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.4018, allocations: 121.8 kB / 0.5159 GB, free: 13.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.4018, allocations: 0 / 0.5159 GB, free: 13.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002715/0.4021, allocations: 173.5 kB / 0.5161 GB, free: 13.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.4021, allocations: 5.094 kB / 0.5161 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.4021, allocations: 4.156 kB / 0.5161 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.4021, allocations: 0 / 0.5161 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.773e-05/0.4022, allocations: 16 kB / 0.5161 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.4022, allocations: 3.984 kB / 0.5161 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.548e-05/0.4023, allocations: 20.2 kB / 0.5161 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.4023, allocations: 4 kB / 0.5162 GB, free: 13.43 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 0.0001067/0.4024, allocations: 125.8 kB / 0.5163 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.339e-05/0.4025, allocations: 11.95 kB / 0.5163 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004809/0.403, allocations: 317.2 kB / 0.5166 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003143/0.4033, allocations: 237.5 kB / 0.5168 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4033, allocations: 4 kB / 0.5168 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.4033, allocations: 0 / 0.5168 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009972/0.4043, allocations: 0.7658 MB / 0.5176 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.4044, allocations: 3.938 kB / 0.5176 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.4046, allocations: 39.98 kB / 0.5176 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.4046, allocations: 4 kB / 0.5176 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.4046, allocations: 0 / 0.5176 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.4046, allocations: 4 kB / 0.5176 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4046, allocations: 0 / 0.5176 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006112/0.4052, allocations: 0.5376 MB / 0.5181 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.067e-05/0.4053, allocations: 92.95 kB / 0.5182 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.65e-05/0.4053, allocations: 11.98 kB / 0.5182 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.4055, allocations: 4 kB / 0.5182 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.911e-05/0.4055, allocations: 11.98 kB / 0.5183 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.4055, allocations: 8.125 kB / 0.5183 GB, free: 11.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.857e-05/0.4056, allocations: 95.27 kB / 0.5184 GB, free: 11.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4056, allocations: 0 / 0.5184 GB, free: 11.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002105/0.4077, allocations: 0.9385 MB / 0.5193 GB, free: 10.12 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.004295/0.412, allocations: 2.467 MB / 0.5217 GB, free: 7.625 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000375/0.4124, allocations: 255.3 kB / 0.5219 GB, free: 7.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.4124, allocations: 3.938 kB / 0.5219 GB, free: 7.359 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.4126, allocations: 120.7 kB / 0.522 GB, free: 7.242 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009468/0.4135, allocations: 144.9 kB / 0.5222 GB, free: 7.102 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.4165, allocations: 2.435 MB / 0.5246 GB, free: 4.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.4169, allocations: 0.7327 MB / 0.5253 GB, free: 3.812 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.417, allocations: 49.94 kB / 0.5253 GB, free: 3.766 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.341e-05/0.4171, allocations: 63.41 kB / 0.5254 GB, free: 3.703 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4171, allocations: 0 / 0.5254 GB, free: 3.703 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06283/0.48, allocations: 30.75 MB / 0.5554 GB, free: 4.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.879/10.36, allocations: 0 / 0.5554 GB, free: 4.98 MB / 446.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1)