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.005102/0.005102, 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.001138/0.001138, 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.515/1.515, 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.04975/0.04975, allocations: 9.099 MB / 279 MB, free: 12.05 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.001741/0.001741, allocations: 63.91 kB / 387 MB, free: 8.488 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3644, allocations: 48.16 MB / 435.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.02305/0.3874, allocations: 17.43 MB / 452.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01763/0.4051, allocations: 16.91 MB / 469.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.4053, allocations: 1.156 kB / 469.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008999/0.4062, allocations: 286 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.01888/0.4252, allocations: 6.112 MB / 475.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001644/0.4268, allocations: 0.5713 MB / 476.4 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002484/0.4271, allocations: 199 kB / 476.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.091e-05/0.4272, allocations: 9.125 kB / 476.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.4273, allocations: 83.64 kB / 476.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.4275, allocations: 63.77 kB / 476.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.4275, allocations: 4 kB / 476.8 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01987/0.4474, allocations: 9.927 MB / 486.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.4474, allocations: 23.84 kB / 486.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.4476, allocations: 47.75 kB / 486.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.4594, allocations: 4.019 MB / 490.8 MB, free: 8.965 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.4595, allocations: 3.984 kB / 490.8 MB, free: 8.961 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4595, allocations: 4 kB / 490.8 MB, free: 8.957 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.4595, allocations: 0 / 490.8 MB, free: 8.957 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.002559/0.4621, allocations: 0.8889 MB / 491.7 MB, free: 8.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.4621, allocations: 12.02 kB / 491.7 MB, free: 8.008 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.728e-05/0.4622, allocations: 38.56 kB / 491.8 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.4624, allocations: 23.83 kB / 491.8 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.4626, allocations: 202.8 kB / 492 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.4626, allocations: 4 kB / 492 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.4626, allocations: 12 kB / 492 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/0.4629, allocations: 131.3 kB / 492.1 MB, free: 7.543 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.4629, allocations: 3.938 kB / 492.1 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.4629, allocations: 7.938 kB / 492.1 MB, free: 7.531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.4629, allocations: 4 kB / 492.1 MB, free: 7.527 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.4631, allocations: 99.83 kB / 492.2 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006732/0.4637, allocations: 0.562 MB / 492.8 MB, free: 6.789 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.464, allocations: 141 kB / 492.9 MB, free: 6.633 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.4641, allocations: 77.77 kB / 493 MB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06204/0.5262, allocations: 33.18 MB / 0.5139 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.5263, allocations: 30.56 kB / 0.5139 GB, free: 15.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 3.216e-06/0.5263, allocations: 0 / 0.5139 GB, free: 15.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007468/0.527, allocations: 237.8 kB / 0.5141 GB, free: 15.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.5271, allocations: 85.09 kB / 0.5142 GB, free: 15.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.5272, allocations: 117.8 kB / 0.5143 GB, free: 15.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.5273, allocations: 29.64 kB / 0.5143 GB, free: 15.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.03e-05/0.5273, allocations: 84.58 kB / 0.5144 GB, free: 15.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.836e-05/0.5274, allocations: 78.84 kB / 0.5145 GB, free: 15.13 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.297e-05/0.5275, allocations: 37.7 kB / 0.5145 GB, free: 15.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.5276, allocations: 326.8 kB / 0.5148 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.57e-05/0.5277, allocations: 47.98 kB / 0.5149 GB, free: 14.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.629e-05/0.5278, allocations: 61.69 kB / 0.5149 GB, free: 14.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001767/0.528, allocations: 121.8 kB / 0.5151 GB, free: 14.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.528, allocations: 0 / 0.5151 GB, free: 14.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002791/0.5283, allocations: 165.4 kB / 0.5152 GB, free: 14.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.5283, allocations: 4 kB / 0.5152 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.5283, allocations: 3.984 kB / 0.5152 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.5284, allocations: 4 kB / 0.5152 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.976e-05/0.5285, allocations: 20 kB / 0.5152 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.5285, allocations: 4.141 kB / 0.5153 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.859e-05/0.5285, allocations: 19.78 kB / 0.5153 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.5286, allocations: 4 kB / 0.5153 GB, free: 14.3 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.8e-05/0.5287, allocations: 121.8 kB / 0.5154 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.667e-05/0.5287, allocations: 7.906 kB / 0.5154 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004792/0.5292, allocations: 321.2 kB / 0.5157 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002944/0.5295, allocations: 245.4 kB / 0.5159 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5295, allocations: 0 / 0.5159 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.5296, allocations: 4 kB / 0.5159 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009579/0.5305, allocations: 0.7462 MB / 0.5167 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.5305, allocations: 3.938 kB / 0.5167 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.5307, allocations: 35.98 kB / 0.5167 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.5307, allocations: 4 kB / 0.5167 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.5307, allocations: 8 kB / 0.5167 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.5307, allocations: 0 / 0.5167 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.5308, allocations: 4 kB / 0.5167 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005724/0.5313, allocations: 0.5297 MB / 0.5172 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.839e-05/0.5314, allocations: 100.8 kB / 0.5173 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.295e-05/0.5314, allocations: 4 kB / 0.5173 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.5316, allocations: 12.06 kB / 0.5174 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.717e-05/0.5317, allocations: 15.97 kB / 0.5174 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.5317, allocations: 8.125 kB / 0.5174 GB, free: 12.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.701e-05/0.5317, allocations: 95.27 kB / 0.5175 GB, free: 11.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5317, allocations: 0 / 0.5175 GB, free: 11.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002517/0.5343, allocations: 0.9252 MB / 0.5184 GB, free: 11.02 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.005104/0.5394, allocations: 2.4 MB / 0.5207 GB, free: 8.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004084/0.5398, allocations: 255.2 kB / 0.521 GB, free: 8.328 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.5398, allocations: 0 / 0.521 GB, free: 8.328 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.54, allocations: 116.6 kB / 0.5211 GB, free: 8.215 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.541, allocations: 140.7 kB / 0.5212 GB, free: 8.078 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/0.5444, allocations: 2.431 MB / 0.5236 GB, free: 5.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.5447, allocations: 0.7328 MB / 0.5243 GB, free: 4.797 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.5449, allocations: 45.97 kB / 0.5243 GB, free: 4.754 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.946e-05/0.545, allocations: 67.42 kB / 0.5244 GB, free: 4.688 MB / 414.1 MB Notification: Performance of SimCode: time 2.21e-07/0.545, allocations: 0 / 0.5244 GB, free: 4.688 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06643/0.6114, allocations: 30.72 MB / 0.5544 GB, free: 5.957 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.818/9.429, allocations: 27.17 kB / 0.5544 GB, free: 5.934 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)