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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 105.8 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 207.6 MB / 229.8 MB, free: 11.43 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05188/0.05188, allocations: 9.157 MB / 290.8 MB, free: 13.92 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002146/0.002146, allocations: 74.92 kB / 405.8 MB, free: 47.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07999/0.08214, allocations: 50.71 MB / 456.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.02225/0.1044, allocations: 17.49 MB / 474 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01846/0.1228, allocations: 16.95 MB / 491 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.123, allocations: 0 / 491 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007678/0.1237, allocations: 319.1 kB / 491.3 MB, free: 11.46 MB / 366.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.01806/0.1418, allocations: 6.644 MB / 498 MB, free: 4.809 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001598/0.1434, allocations: 0.6221 MB / 498.6 MB, free: 4.184 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002693/0.1437, allocations: 207 kB / 498.8 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.956e-05/0.1437, allocations: 5.125 kB / 498.8 MB, free: 3.977 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.1439, allocations: 83.64 kB / 498.9 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.144, allocations: 59.72 kB / 498.9 MB, free: 3.836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.144, allocations: 4 kB / 498.9 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01876/0.1627, allocations: 10.64 MB / 0.4976 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/0.1628, allocations: 15.92 kB / 0.4976 GB, free: 9.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.578e-05/0.1628, allocations: 51.81 kB / 0.4977 GB, free: 9.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01265/0.1755, allocations: 4.142 MB / 0.5017 GB, free: 4.953 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1755, allocations: 4 kB / 0.5017 GB, free: 4.949 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1755, allocations: 0 / 0.5017 GB, free: 4.949 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1755, allocations: 4 kB / 0.5017 GB, free: 4.945 MB / 382.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.00183/0.1773, allocations: 0.9161 MB / 0.5026 GB, free: 3.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.1774, allocations: 12.03 kB / 0.5026 GB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.33e-05/0.1774, allocations: 46.55 kB / 0.5027 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.1776, allocations: 27.83 kB / 0.5027 GB, free: 3.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.1778, allocations: 198.9 kB / 0.5029 GB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.1778, allocations: 4 kB / 0.5029 GB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.1779, allocations: 12 kB / 0.5029 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.1781, allocations: 127.3 kB / 0.503 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1781, allocations: 0 / 0.503 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.1781, allocations: 3.938 kB / 0.503 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.1781, allocations: 11.98 kB / 0.5031 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001499/0.1783, allocations: 91.91 kB / 0.5031 GB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007103/0.179, allocations: 0.5816 MB / 0.5037 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.1792, allocations: 117.1 kB / 0.5038 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.1793, allocations: 61.77 kB / 0.5039 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2621/0.4414, allocations: 33.17 MB / 0.5363 GB, free: 86.03 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.4414, allocations: 36.81 kB / 0.5363 GB, free: 85.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.214e-06/0.4414, allocations: 1.5 kB / 0.5363 GB, free: 85.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006281/0.4421, allocations: 226.4 kB / 0.5365 GB, free: 85.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.4421, allocations: 82.08 kB / 0.5366 GB, free: 85.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.48e-05/0.4422, allocations: 115.2 kB / 0.5367 GB, free: 85.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.4422, allocations: 31.69 kB / 0.5367 GB, free: 85.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.247e-05/0.4422, allocations: 93.44 kB / 0.5368 GB, free: 85.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.852e-05/0.4423, allocations: 87.67 kB / 0.5369 GB, free: 85.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.474e-05/0.4423, allocations: 37.61 kB / 0.537 GB, free: 85.6 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.499e-05/0.4424, allocations: 325.2 kB / 0.5373 GB, free: 85.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.255e-05/0.4425, allocations: 44.33 kB / 0.5373 GB, free: 85.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.276e-05/0.4425, allocations: 72.39 kB / 0.5374 GB, free: 85.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.4427, allocations: 120.2 kB / 0.5375 GB, free: 85.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4427, allocations: 0 / 0.5375 GB, free: 85.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002409/0.4429, allocations: 170.7 kB / 0.5377 GB, free: 85.22 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.443, allocations: 5.359 kB / 0.5377 GB, free: 85.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.443, allocations: 1.125 kB / 0.5377 GB, free: 85.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.443, allocations: 3.375 kB / 0.5377 GB, free: 85.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.496e-05/0.4431, allocations: 18.78 kB / 0.5377 GB, free: 85.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.4431, allocations: 1.734 kB / 0.5377 GB, free: 85.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.236e-05/0.4431, allocations: 12.12 kB / 0.5377 GB, free: 85.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.4432, allocations: 9.047 kB / 0.5377 GB, free: 85.21 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 6.925e-05/0.4432, allocations: 123.1 kB / 0.5378 GB, free: 85.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.608e-05/0.4433, allocations: 13.84 kB / 0.5378 GB, free: 85.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004414/0.4437, allocations: 315.3 kB / 0.5381 GB, free: 85.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002947/0.444, allocations: 233.2 kB / 0.5384 GB, free: 85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.444, allocations: 0 / 0.5384 GB, free: 85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.444, allocations: 6.188 kB / 0.5384 GB, free: 85 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008232/0.4449, allocations: 0.7537 MB / 0.5391 GB, free: 84.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.4449, allocations: 1.344 kB / 0.5391 GB, free: 84.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.4451, allocations: 45.16 kB / 0.5391 GB, free: 84.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.4451, allocations: 1.281 kB / 0.5391 GB, free: 84.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.4451, allocations: 9.859 kB / 0.5392 GB, free: 84.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.4451, allocations: 1.344 kB / 0.5392 GB, free: 84.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4451, allocations: 2 kB / 0.5392 GB, free: 84.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004919/0.4456, allocations: 0.5199 MB / 0.5397 GB, free: 84.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.671e-05/0.4456, allocations: 101.1 kB / 0.5398 GB, free: 84.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.415e-05/0.4456, allocations: 2.719 kB / 0.5398 GB, free: 84.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.4458, allocations: 6.203 kB / 0.5398 GB, free: 84.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.932e-05/0.4458, allocations: 20.98 kB / 0.5398 GB, free: 84.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.4458, allocations: 8.156 kB / 0.5398 GB, free: 84.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.454e-05/0.4459, allocations: 97.27 kB / 0.5399 GB, free: 83.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4459, allocations: 2.375 kB / 0.5399 GB, free: 83.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002777/0.4486, allocations: 0.9454 MB / 0.5408 GB, free: 83.91 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.005048/0.4537, allocations: 2.454 MB / 0.5432 GB, free: 82.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004168/0.4541, allocations: 232.8 kB / 0.5434 GB, free: 82.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4541, allocations: 0 / 0.5434 GB, free: 82.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.4542, allocations: 106.9 kB / 0.5435 GB, free: 82.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009854/0.4552, allocations: 150.7 kB / 0.5437 GB, free: 82.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003582/0.4588, allocations: 2.443 MB / 0.5461 GB, free: 80.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.459, allocations: 0.7343 MB / 0.5468 GB, free: 80.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002317/0.4592, allocations: 37.42 kB / 0.5468 GB, free: 80.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.4593, allocations: 65.62 kB / 0.5469 GB, free: 80.07 MB / 414.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4593, allocations: 0 / 0.5469 GB, free: 80.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06109/0.5204, allocations: 30.8 MB / 0.577 GB, free: 55.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.575/10.1, allocations: 0 / 0.577 GB, free: 55.34 MB / 414.1 MB " [Timeout remaining time 650] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.547734783962369] Failed to read output from testmodel.py, exit status != 0: 10.185804794542491 10.205332719 10.025988522 Calling exit ...