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.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.001542/0.001542, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002125/0.002125, allocations: 216.3 kB / 22.26 MB, free: 5.113 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.515/1.515, allocations: 207.6 MB / 233 MB, free: 10 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.05515/0.05515, allocations: 9.156 MB / 294.4 MB, free: 12.7 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.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.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.002202/0.002202, allocations: 75.52 kB / 411.1 MB, free: 46.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06496/0.06716, allocations: 50.75 MB / 461.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.02063/0.08779, allocations: 17.53 MB / 479.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01785/0.1056, allocations: 16.95 MB / 496.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.942e-05/0.1057, allocations: 4 kB / 496.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007061/0.1064, allocations: 315.2 kB / 496.6 MB, free: 9.789 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.01495/0.1214, allocations: 6.516 MB / 0.4914 GB, free: 3.262 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001481/0.1229, allocations: 0.6143 MB / 0.492 GB, free: 2.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002457/0.1231, allocations: 207 kB / 0.4922 GB, free: 2.441 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.304e-05/0.1232, allocations: 5.312 kB / 0.4922 GB, free: 2.438 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.1233, allocations: 91.64 kB / 0.4922 GB, free: 2.348 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.1234, allocations: 63.7 kB / 0.4923 GB, free: 2.285 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.1234, allocations: 4 kB / 0.4923 GB, free: 2.281 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01818/0.1416, allocations: 10.41 MB / 0.5025 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.729e-05/0.1417, allocations: 7.938 kB / 0.5025 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.1418, allocations: 55.67 kB / 0.5025 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00991/0.1517, allocations: 4.049 MB / 0.5065 GB, free: 3.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1517, allocations: 0 / 0.5065 GB, free: 3.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.1517, allocations: 8 kB / 0.5065 GB, free: 3.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1517, allocations: 0 / 0.5065 GB, free: 3.723 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.001739/0.1534, allocations: 0.8369 MB / 0.5073 GB, free: 2.852 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1535, allocations: 11.98 kB / 0.5073 GB, free: 2.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.227e-05/0.1535, allocations: 46.55 kB / 0.5074 GB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001716/0.1537, allocations: 27.83 kB / 0.5074 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002094/0.1539, allocations: 152.9 kB / 0.5075 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.1539, allocations: 4 kB / 0.5075 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.1539, allocations: 12 kB / 0.5076 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.1541, allocations: 127.4 kB / 0.5077 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.1542, allocations: 0 / 0.5077 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.1542, allocations: 7.938 kB / 0.5077 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.1542, allocations: 4 kB / 0.5077 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000152/0.1543, allocations: 103.9 kB / 0.5078 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007264/0.1551, allocations: 0.5495 MB / 0.5083 GB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.1553, allocations: 121 kB / 0.5084 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.838e-05/0.1554, allocations: 57.77 kB / 0.5085 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05235/0.2078, allocations: 10.88 MB / 0.5191 GB, free: 6.602 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.2078, allocations: 38.56 kB / 0.5192 GB, free: 6.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.555e-06/0.2078, allocations: 0 / 0.5192 GB, free: 6.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006869/0.2085, allocations: 230 kB / 0.5194 GB, free: 6.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.2086, allocations: 81.11 kB / 0.5195 GB, free: 6.227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.2087, allocations: 117.8 kB / 0.5196 GB, free: 6.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.2087, allocations: 29.7 kB / 0.5196 GB, free: 6.066 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.958e-05/0.2087, allocations: 96.52 kB / 0.5197 GB, free: 5.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.595e-05/0.2088, allocations: 79.22 kB / 0.5198 GB, free: 5.887 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.026e-05/0.2089, allocations: 37.7 kB / 0.5198 GB, free: 5.844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.209, allocations: 326.8 kB / 0.5201 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.759e-05/0.2091, allocations: 47.98 kB / 0.5202 GB, free: 5.469 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.438e-05/0.2092, allocations: 65.69 kB / 0.5202 GB, free: 5.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.2094, allocations: 117.7 kB / 0.5203 GB, free: 5.277 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2094, allocations: 0 / 0.5203 GB, free: 5.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003198/0.2097, allocations: 177.6 kB / 0.5205 GB, free: 5.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.2097, allocations: 6.5 kB / 0.5205 GB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.2097, allocations: 0 / 0.5205 GB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.2097, allocations: 0 / 0.5205 GB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.2098, allocations: 27.98 kB / 0.5205 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.2098, allocations: 0 / 0.5205 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.484e-05/0.2099, allocations: 11.83 kB / 0.5205 GB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.2099, allocations: 12 kB / 0.5206 GB, free: 5.043 MB / 398.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.0001034/0.21, allocations: 121.9 kB / 0.5207 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.771e-05/0.2101, allocations: 7.953 kB / 0.5207 GB, free: 4.906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005112/0.2106, allocations: 325.4 kB / 0.521 GB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003196/0.2109, allocations: 249.5 kB / 0.5212 GB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2109, allocations: 4 kB / 0.5212 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.2109, allocations: 3.984 kB / 0.5212 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.212, allocations: 0.7221 MB / 0.5219 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.212, allocations: 0 / 0.5219 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.2121, allocations: 39.92 kB / 0.522 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.2121, allocations: 8 kB / 0.522 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.2122, allocations: 7.984 kB / 0.522 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.2122, allocations: 4 kB / 0.522 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2122, allocations: 0 / 0.522 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006064/0.2128, allocations: 0.5378 MB / 0.5225 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.669e-05/0.2128, allocations: 19.88 kB / 0.5225 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/0.2128, allocations: 4 kB / 0.5225 GB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.213, allocations: 12.06 kB / 0.5226 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.105e-05/0.213, allocations: 11.97 kB / 0.5226 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.213, allocations: 8 kB / 0.5226 GB, free: 2.895 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.604e-05/0.2131, allocations: 95.27 kB / 0.5227 GB, free: 2.801 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2131, allocations: 0 / 0.5227 GB, free: 2.801 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002379/0.2155, allocations: 0.9462 MB / 0.5236 GB, free: 1.852 MB / 398.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.1647/0.3802, allocations: 2.403 MB / 0.5259 GB, free: 71.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004056/0.3806, allocations: 233.8 kB / 0.5262 GB, free: 70.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3806, allocations: 0 / 0.5262 GB, free: 70.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001351/0.3807, allocations: 100.7 kB / 0.5263 GB, free: 70.97 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000933/0.3817, allocations: 144 kB / 0.5264 GB, free: 70.97 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.3847, allocations: 2.445 MB / 0.5288 GB, free: 69.65 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001634/0.3849, allocations: 0.733 MB / 0.5295 GB, free: 68.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001635/0.385, allocations: 50.92 kB / 0.5295 GB, free: 68.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.75e-05/0.3851, allocations: 62.02 kB / 0.5296 GB, free: 68.94 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3851, allocations: 1.125 kB / 0.5296 GB, free: 68.94 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06852/0.4536, allocations: 31.1 MB / 0.56 GB, free: 48.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/12.9, allocations: 0 / 0.56 GB, free: 48.73 MB / 398.1 MB " [Timeout remaining time 647] (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 sys.exit(0), Time elapsed: 17.582312101032585] Failed to read output from testmodel.py, exit status != 0: 13.023297665873542 13.044970667 12.889206619 Calling exit ...