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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 109.1 kB / 16.45 MB, free: 6.035 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.001987/0.001987, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.402/1.402, allocations: 207.6 MB / 229.8 MB, free: 11.42 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.06359/0.06359, allocations: 9.148 MB / 290.8 MB, free: 13.93 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.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"}) [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.00216/0.00216, allocations: 72.3 kB / 405.8 MB, free: 47.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07826/0.08042, allocations: 50.71 MB / 456.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.02259/0.103, allocations: 17.49 MB / 474 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01979/0.1228, allocations: 16.95 MB / 491 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.1229, allocations: 0 / 491 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008628/0.1238, allocations: 315.2 kB / 491.3 MB, free: 11.34 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.01652/0.1403, allocations: 6.454 MB / 497.8 MB, free: 4.871 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.1418, allocations: 0.6065 MB / 498.4 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002816/0.1421, allocations: 203 kB / 498.6 MB, free: 4.062 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.876e-05/0.1421, allocations: 9.125 kB / 498.6 MB, free: 4.055 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.1423, allocations: 91.64 kB / 498.7 MB, free: 3.965 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001178/0.1424, allocations: 63.7 kB / 498.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.1424, allocations: 4 kB / 498.7 MB, free: 3.898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01825/0.1607, allocations: 10.09 MB / 0.4969 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.817e-05/0.1607, allocations: 7.938 kB / 0.4969 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.797e-05/0.1608, allocations: 59.67 kB / 0.4969 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01124/0.172, allocations: 4.029 MB / 0.5009 GB, free: 5.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.172, allocations: 4 kB / 0.5009 GB, free: 5.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.172, allocations: 0 / 0.5009 GB, free: 5.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.172, allocations: 4 kB / 0.5009 GB, free: 5.68 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.002007/0.174, allocations: 0.9122 MB / 0.5018 GB, free: 4.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.1741, allocations: 12.03 kB / 0.5018 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.144e-05/0.1741, allocations: 42.55 kB / 0.5018 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.1743, allocations: 31.83 kB / 0.5019 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.1746, allocations: 206.7 kB / 0.5021 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.1746, allocations: 4 kB / 0.5021 GB, free: 4.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.961e-05/0.1746, allocations: 16 kB / 0.5021 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.1748, allocations: 123.4 kB / 0.5022 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1748, allocations: 0 / 0.5022 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.1749, allocations: 7.938 kB / 0.5022 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.1749, allocations: 7.984 kB / 0.5022 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001527/0.175, allocations: 91.91 kB / 0.5023 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007394/0.1758, allocations: 0.5816 MB / 0.5029 GB, free: 3.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.176, allocations: 113.1 kB / 0.503 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.1761, allocations: 61.77 kB / 0.503 GB, free: 3.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2621/0.4382, allocations: 33.16 MB / 0.5354 GB, free: 86.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.4382, allocations: 36.61 kB / 0.5355 GB, free: 86.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.465e-06/0.4382, allocations: 0 / 0.5355 GB, free: 86.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006412/0.4388, allocations: 226.5 kB / 0.5357 GB, free: 86.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.693e-05/0.4389, allocations: 80.23 kB / 0.5357 GB, free: 86.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.148e-05/0.4389, allocations: 120.3 kB / 0.5359 GB, free: 86.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.439, allocations: 31.39 kB / 0.5359 GB, free: 86.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.234e-05/0.439, allocations: 88.34 kB / 0.536 GB, free: 86.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.627e-05/0.439, allocations: 95.78 kB / 0.5361 GB, free: 86.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.279e-05/0.4391, allocations: 36.95 kB / 0.5361 GB, free: 86.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.592e-05/0.4392, allocations: 324.5 kB / 0.5364 GB, free: 85.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.61e-05/0.4392, allocations: 44.17 kB / 0.5365 GB, free: 85.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.291e-05/0.4393, allocations: 66.03 kB / 0.5365 GB, free: 85.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.4395, allocations: 120.3 kB / 0.5366 GB, free: 85.88 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.4395, allocations: 0 / 0.5366 GB, free: 85.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00023/0.4397, allocations: 173.8 kB / 0.5368 GB, free: 85.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4397, allocations: 8.359 kB / 0.5368 GB, free: 85.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.4397, allocations: 1.156 kB / 0.5368 GB, free: 85.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.4397, allocations: 1.25 kB / 0.5368 GB, free: 85.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.713e-05/0.4398, allocations: 19.55 kB / 0.5368 GB, free: 85.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.4398, allocations: 0 / 0.5368 GB, free: 85.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.334e-05/0.4399, allocations: 11.94 kB / 0.5368 GB, free: 85.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.4399, allocations: 7.984 kB / 0.5368 GB, free: 85.84 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 7.03e-05/0.44, allocations: 123.2 kB / 0.537 GB, free: 85.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.507e-05/0.44, allocations: 13.19 kB / 0.537 GB, free: 85.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004742/0.4405, allocations: 311.7 kB / 0.5373 GB, free: 85.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003124/0.4408, allocations: 247.3 kB / 0.5375 GB, free: 85.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.4408, allocations: 0 / 0.5375 GB, free: 85.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.4408, allocations: 2.875 kB / 0.5375 GB, free: 85.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008688/0.4417, allocations: 0.7496 MB / 0.5382 GB, free: 85.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.4417, allocations: 0.6094 kB / 0.5382 GB, free: 85.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001693/0.4419, allocations: 45.22 kB / 0.5383 GB, free: 85.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4419, allocations: 1.062 kB / 0.5383 GB, free: 85.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.4419, allocations: 9.922 kB / 0.5383 GB, free: 85.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.4419, allocations: 1.844 kB / 0.5383 GB, free: 85.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.4419, allocations: 3.156 kB / 0.5383 GB, free: 85.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005073/0.4424, allocations: 0.5243 MB / 0.5388 GB, free: 84.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.806e-05/0.4425, allocations: 97.92 kB / 0.5389 GB, free: 84.76 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.4425, allocations: 4.906 kB / 0.5389 GB, free: 84.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.4426, allocations: 6.156 kB / 0.5389 GB, free: 84.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.85e-05/0.4427, allocations: 17.73 kB / 0.5389 GB, free: 84.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.4427, allocations: 8.188 kB / 0.5389 GB, free: 84.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.224e-05/0.4427, allocations: 100.1 kB / 0.539 GB, free: 84.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4427, allocations: 0 / 0.539 GB, free: 84.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002394/0.4451, allocations: 0.9413 MB / 0.54 GB, free: 84.61 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.004464/0.4496, allocations: 2.42 MB / 0.5423 GB, free: 83.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004528/0.45, allocations: 230.1 kB / 0.5425 GB, free: 83.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.45, allocations: 0 / 0.5425 GB, free: 83.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.4502, allocations: 107.3 kB / 0.5426 GB, free: 83.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.4512, allocations: 146.3 kB / 0.5428 GB, free: 83.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003427/0.4546, allocations: 2.443 MB / 0.5452 GB, free: 81.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00022/0.4548, allocations: 0.7331 MB / 0.5459 GB, free: 80.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002077/0.4551, allocations: 53.02 kB / 0.5459 GB, free: 80.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.4552, allocations: 61.89 kB / 0.546 GB, free: 80.8 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4552, allocations: 0 / 0.546 GB, free: 80.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06186/0.517, allocations: 30.7 MB / 0.576 GB, free: 56.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.223/9.74, allocations: 3.984 kB / 0.576 GB, free: 56.28 MB / 414.1 MB " [Timeout remaining time 650] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.243467987980694] Failed to read output from testmodel.py, exit status != 0: 9.829717303160578 9.846387913 9.671059988 Calling exit ...