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.005545/0.005545, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.001259/0.001259, allocations: 198.4 kB / 16.68 MB, free: 5.938 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.463/1.463, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04834/0.04834, allocations: 9.099 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.001635/0.001635, allocations: 64.11 kB / 387 MB, free: 8.496 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2955, allocations: 48.15 MB / 435.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01916/0.3147, allocations: 17.43 MB / 452.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01751/0.3323, allocations: 16.92 MB / 469.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.3324, allocations: 1.125 kB / 469.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008176/0.3333, allocations: 286 kB / 469.8 MB, free: 12.25 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.01857/0.3519, allocations: 6.302 MB / 476.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001963/0.3539, allocations: 0.5713 MB / 476.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.3541, allocations: 203 kB / 476.8 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.383e-05/0.3542, allocations: 13.11 kB / 476.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.3544, allocations: 87.59 kB / 476.9 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.3545, allocations: 59.77 kB / 477 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.27e-05/0.3545, allocations: 7.938 kB / 477 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02263/0.3771, allocations: 10.46 MB / 487.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.513e-05/0.3772, allocations: 7.938 kB / 487.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.3774, allocations: 55.67 kB / 487.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01273/0.3901, allocations: 4.132 MB / 491.7 MB, free: 8.023 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.3902, allocations: 0 / 491.7 MB, free: 8.023 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3902, allocations: 0 / 491.7 MB, free: 8.023 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.3902, allocations: 0 / 491.7 MB, free: 8.023 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.002267/0.3925, allocations: 0.8928 MB / 492.5 MB, free: 7.082 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3925, allocations: 8.031 kB / 492.6 MB, free: 7.074 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.344e-05/0.3926, allocations: 42.55 kB / 492.6 MB, free: 7.023 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.3928, allocations: 31.83 kB / 492.6 MB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.393, allocations: 194.8 kB / 492.8 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.393, allocations: 11.94 kB / 492.8 MB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/0.3931, allocations: 4 kB / 492.8 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002274/0.3933, allocations: 135.2 kB / 493 MB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.3933, allocations: 0 / 493 MB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.3933, allocations: 7.938 kB / 493 MB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.3933, allocations: 0 / 493 MB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001383/0.3935, allocations: 99.95 kB / 493.1 MB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007067/0.3942, allocations: 0.5775 MB / 493.6 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.3945, allocations: 129.1 kB / 493.8 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.3946, allocations: 81.75 kB / 493.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0633/0.4579, allocations: 33.16 MB / 0.5147 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.458, allocations: 42.5 kB / 0.5147 GB, free: 14.87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.845e-06/0.458, allocations: 0 / 0.5147 GB, free: 14.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006937/0.4587, allocations: 237.5 kB / 0.5149 GB, free: 14.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.4588, allocations: 81.11 kB / 0.515 GB, free: 14.53 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.4589, allocations: 113.8 kB / 0.5151 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.4589, allocations: 29.7 kB / 0.5151 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.177e-05/0.459, allocations: 92.5 kB / 0.5152 GB, free: 14.28 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7e-05/0.4591, allocations: 70.86 kB / 0.5153 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.445e-05/0.4591, allocations: 45.7 kB / 0.5153 GB, free: 14.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4593, allocations: 322.8 kB / 0.5157 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.098e-05/0.4593, allocations: 47.98 kB / 0.5157 GB, free: 13.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.073e-05/0.4594, allocations: 61.69 kB / 0.5158 GB, free: 13.72 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.4596, allocations: 133.8 kB / 0.5159 GB, free: 13.58 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4596, allocations: 0 / 0.5159 GB, free: 13.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002493/0.4599, allocations: 165.5 kB / 0.516 GB, free: 13.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.4599, allocations: 8 kB / 0.5161 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4599, allocations: 0 / 0.5161 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.4599, allocations: 4 kB / 0.5161 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.365e-05/0.46, allocations: 23.92 kB / 0.5161 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.46, allocations: 0 / 0.5161 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.386e-05/0.4601, allocations: 15.84 kB / 0.5161 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.4601, allocations: 4.375 kB / 0.5161 GB, free: 13.36 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.726e-05/0.4602, allocations: 117.8 kB / 0.5162 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.676e-05/0.4603, allocations: 7.906 kB / 0.5162 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004556/0.4608, allocations: 325.1 kB / 0.5165 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002866/0.4611, allocations: 237.4 kB / 0.5168 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.4611, allocations: 0 / 0.5168 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.4611, allocations: 3.984 kB / 0.5168 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009883/0.4621, allocations: 0.7617 MB / 0.5175 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.4621, allocations: 0 / 0.5175 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.4623, allocations: 48.05 kB / 0.5175 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.4623, allocations: 0 / 0.5175 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.4623, allocations: 4 kB / 0.5176 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.4623, allocations: 0 / 0.5176 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4623, allocations: 0 / 0.5176 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005846/0.4629, allocations: 0.5375 MB / 0.5181 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.565e-05/0.463, allocations: 96.89 kB / 0.5182 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.86e-05/0.463, allocations: 4 kB / 0.5182 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.4632, allocations: 8 kB / 0.5182 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.091e-05/0.4632, allocations: 11.98 kB / 0.5182 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.4632, allocations: 8 kB / 0.5182 GB, free: 11.1 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.406e-05/0.4633, allocations: 95.2 kB / 0.5183 GB, free: 11.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4633, allocations: 4 kB / 0.5183 GB, free: 11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002671/0.466, allocations: 0.9252 MB / 0.5192 GB, free: 10.08 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.005494/0.4715, allocations: 2.439 MB / 0.5216 GB, free: 7.609 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003677/0.4719, allocations: 255.7 kB / 0.5218 GB, free: 7.348 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4719, allocations: 0 / 0.5218 GB, free: 7.348 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.472, allocations: 124.1 kB / 0.5219 GB, free: 7.227 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009094/0.473, allocations: 146.1 kB / 0.5221 GB, free: 7.086 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003473/0.4764, allocations: 2.422 MB / 0.5244 GB, free: 4.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.4768, allocations: 0.7289 MB / 0.5252 GB, free: 3.816 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.4769, allocations: 53.97 kB / 0.5252 GB, free: 3.766 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.627e-05/0.477, allocations: 59.42 kB / 0.5253 GB, free: 3.707 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.477, allocations: 0 / 0.5253 GB, free: 3.707 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0644/0.5415, allocations: 30.81 MB / 0.5554 GB, free: 4.918 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.381/9.922, allocations: 11.34 kB / 0.5554 GB, free: 4.91 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)