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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 117.1 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 215 kB / 20.13 MB, free: 2.949 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.412/1.412, allocations: 207.6 MB / 230.5 MB, free: 4.051 MB / 174.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.04828/0.04828, allocations: 9.148 MB / 291.5 MB, free: 7.18 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 71.91 kB / 406.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2568, allocations: 50.72 MB / 457.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01952/0.2763, allocations: 17.48 MB / 474.8 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01694/0.2933, allocations: 16.95 MB / 491.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2934, allocations: 0 / 491.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007714/0.2941, allocations: 315.1 kB / 492.1 MB, free: 5.031 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.01752/0.3116, allocations: 6.641 MB / 498.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001568/0.3132, allocations: 0.6143 MB / 499.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002502/0.3135, allocations: 199 kB / 499.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.752e-05/0.3135, allocations: 9.109 kB / 499.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.3137, allocations: 95.58 kB / 499.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.3138, allocations: 55.77 kB / 499.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.3138, allocations: 4 kB / 499.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01921/0.333, allocations: 10.64 MB / 0.4983 GB, free: 2.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.555e-05/0.3331, allocations: 19.86 kB / 0.4984 GB, free: 2.711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.3332, allocations: 55.73 kB / 0.4984 GB, free: 2.656 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.3446, allocations: 4.139 MB / 0.5025 GB, free: 14.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3446, allocations: 4 kB / 0.5025 GB, free: 14.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3446, allocations: 0 / 0.5025 GB, free: 14.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.3446, allocations: 4 kB / 0.5025 GB, free: 14.5 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.001875/0.3465, allocations: 0.9161 MB / 0.5034 GB, free: 13.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.3465, allocations: 8.031 kB / 0.5034 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.223e-05/0.3466, allocations: 4 kB / 0.5034 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.027e-05/0.3466, allocations: 42.48 kB / 0.5034 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.3468, allocations: 35.88 kB / 0.5034 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.347, allocations: 194.9 kB / 0.5036 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.347, allocations: 7.938 kB / 0.5036 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.347, allocations: 8 kB / 0.5037 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.3472, allocations: 139.3 kB / 0.5038 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3473, allocations: 0 / 0.5038 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.3473, allocations: 3.938 kB / 0.5038 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.3473, allocations: 4 kB / 0.5038 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.3474, allocations: 103.9 kB / 0.5039 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000653/0.3481, allocations: 0.5738 MB / 0.5045 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.3483, allocations: 113.1 kB / 0.5046 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.684e-05/0.3484, allocations: 61.77 kB / 0.5046 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06024/0.4086, allocations: 33.17 MB / 0.537 GB, free: 5.379 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.4087, allocations: 34.56 kB / 0.537 GB, free: 5.336 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.214e-06/0.4087, allocations: 0 / 0.537 GB, free: 5.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006698/0.4094, allocations: 237.6 kB / 0.5373 GB, free: 5.098 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/0.4094, allocations: 77.11 kB / 0.5373 GB, free: 5.004 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.4095, allocations: 117.8 kB / 0.5375 GB, free: 4.879 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.4095, allocations: 29.7 kB / 0.5375 GB, free: 4.844 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.971e-05/0.4096, allocations: 96.45 kB / 0.5376 GB, free: 4.742 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.265e-05/0.4097, allocations: 79.28 kB / 0.5377 GB, free: 4.664 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.672e-05/0.4097, allocations: 33.7 kB / 0.5377 GB, free: 4.625 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4099, allocations: 330.8 kB / 0.538 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.374e-05/0.4099, allocations: 43.98 kB / 0.538 GB, free: 4.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.654e-05/0.41, allocations: 69.62 kB / 0.5381 GB, free: 4.176 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.4102, allocations: 121.8 kB / 0.5382 GB, free: 4.051 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4102, allocations: 0 / 0.5382 GB, free: 4.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002482/0.4105, allocations: 169.5 kB / 0.5384 GB, free: 3.879 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.4105, allocations: 9.406 kB / 0.5384 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.4105, allocations: 0 / 0.5384 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.4105, allocations: 0 / 0.5384 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.845e-05/0.4106, allocations: 24 kB / 0.5384 GB, free: 3.848 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.4106, allocations: 7.984 kB / 0.5384 GB, free: 3.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.994e-05/0.4107, allocations: 7.891 kB / 0.5384 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.4107, allocations: 4 kB / 0.5384 GB, free: 3.828 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.4108, allocations: 125.7 kB / 0.5386 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.555e-05/0.4108, allocations: 12.45 kB / 0.5386 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004587/0.4113, allocations: 309.4 kB / 0.5389 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003075/0.4116, allocations: 249.5 kB / 0.5391 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.4116, allocations: 3.984 kB / 0.5391 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.4116, allocations: 7.922 kB / 0.5391 GB, free: 3.121 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009515/0.4126, allocations: 0.7504 MB / 0.5398 GB, free: 2.316 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.4126, allocations: 4 kB / 0.5398 GB, free: 2.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.4127, allocations: 43.92 kB / 0.5399 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.4127, allocations: 4 kB / 0.5399 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.4127, allocations: 4 kB / 0.5399 GB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.4127, allocations: 4 kB / 0.5399 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/0.4127, allocations: 0 / 0.5399 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005741/0.4133, allocations: 0.53 MB / 0.5404 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.418e-05/0.4134, allocations: 96.97 kB / 0.5405 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.4134, allocations: 4.062 kB / 0.5405 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.4135, allocations: 8 kB / 0.5405 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.003e-05/0.4136, allocations: 15.98 kB / 0.5405 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.4136, allocations: 8 kB / 0.5405 GB, free: 1.562 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.972e-05/0.4136, allocations: 91.27 kB / 0.5406 GB, free: 1.473 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4136, allocations: 0 / 0.5406 GB, free: 1.473 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002494/0.4161, allocations: 0.9424 MB / 0.5416 GB, free: 0.5273 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.004758/0.4209, allocations: 2.456 MB / 0.544 GB, free: 14.04 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003941/0.4213, allocations: 243.2 kB / 0.5442 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4213, allocations: 0 / 0.5442 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.4214, allocations: 107.8 kB / 0.5443 GB, free: 13.68 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009255/0.4224, allocations: 141 kB / 0.5444 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003212/0.4256, allocations: 2.45 MB / 0.5468 GB, free: 11 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.4259, allocations: 0.7328 MB / 0.5475 GB, free: 10.24 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.426, allocations: 45.89 kB / 0.5476 GB, free: 10.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.955e-05/0.4261, allocations: 63.42 kB / 0.5476 GB, free: 10.13 MB / 430.1 MB Notification: Performance of SimCode: time 3.7e-07/0.4261, allocations: 0 / 0.5476 GB, free: 10.13 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06107/0.4872, allocations: 30.82 MB / 0.5777 GB, free: 11.35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.045/9.532, allocations: 8 kB / 0.5777 GB, free: 11.34 MB / 462.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: 11.886448536999524] Failed to read output from testmodel.py, exit status != 0: 9.671878775989171 9.68513574 9.337662755 Calling exit ...