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.00123/0.00123, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001361/0.001361, allocations: 215 kB / 23.03 MB, free: 4.926 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.333/1.333, allocations: 207.7 MB / 233.9 MB, free: 9.793 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.05062/0.05062, allocations: 9.148 MB / 295.3 MB, free: 12.51 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesButane,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane",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.00205/0.00205, allocations: 66.97 kB / 411.9 MB, free: 46.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.075/0.07705, allocations: 50.76 MB / 462.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01985/0.0969, allocations: 15.78 MB / 478.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01671/0.1136, allocations: 14.97 MB / 493.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.21e-05/0.1137, allocations: 0 / 493.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007186/0.1144, allocations: 251.3 kB / 493.6 MB, free: 13.39 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.01582/0.1302, allocations: 6.424 MB / 0.4883 GB, free: 6.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001553/0.1318, allocations: 0.6143 MB / 0.4889 GB, free: 6.336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.132, allocations: 199 kB / 0.4891 GB, free: 6.141 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.999e-05/0.1321, allocations: 5.312 kB / 0.4891 GB, free: 6.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.1322, allocations: 99.56 kB / 0.4892 GB, free: 6.039 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.1324, allocations: 59.7 kB / 0.4893 GB, free: 5.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.62e-05/0.1324, allocations: 4 kB / 0.4893 GB, free: 5.977 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01348/0.1459, allocations: 7.228 MB / 0.4963 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.171e-05/0.1459, allocations: 19.91 kB / 0.4964 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.042e-05/0.146, allocations: 47.8 kB / 0.4964 GB, free: 14.67 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008625/0.1546, allocations: 3.433 MB / 0.4998 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1546, allocations: 0 / 0.4998 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1546, allocations: 0 / 0.4998 GB, free: 11.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1546, allocations: 0 / 0.4998 GB, free: 11.23 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.001821/0.1564, allocations: 0.8447 MB / 0.5006 GB, free: 10.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.1565, allocations: 15.98 kB / 0.5006 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.664e-05/0.1565, allocations: 0 / 0.5006 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.178e-05/0.1566, allocations: 46.48 kB / 0.5006 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.1567, allocations: 27.89 kB / 0.5007 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.1569, allocations: 141 kB / 0.5008 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.1569, allocations: 3.984 kB / 0.5008 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.157, allocations: 8 kB / 0.5008 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.1572, allocations: 132.9 kB / 0.5009 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1572, allocations: 0 / 0.5009 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.1572, allocations: 11.94 kB / 0.5009 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.1573, allocations: 4 kB / 0.501 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/0.1574, allocations: 99.89 kB / 0.501 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006263/0.158, allocations: 451.9 kB / 0.5015 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.1583, allocations: 113.1 kB / 0.5016 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.1584, allocations: 61.77 kB / 0.5016 GB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05148/0.2099, allocations: 10.92 MB / 0.5123 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.2099, allocations: 38.5 kB / 0.5123 GB, free: 14.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.374e-06/0.2099, allocations: 0 / 0.5123 GB, free: 14.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007167/0.2106, allocations: 230 kB / 0.5126 GB, free: 13.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.446e-05/0.2107, allocations: 81.11 kB / 0.5126 GB, free: 13.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.2108, allocations: 121.8 kB / 0.5128 GB, free: 13.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.2108, allocations: 25.7 kB / 0.5128 GB, free: 13.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.246e-05/0.2109, allocations: 92.53 kB / 0.5129 GB, free: 13.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.304e-05/0.211, allocations: 83.27 kB / 0.5129 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.634e-05/0.211, allocations: 49.64 kB / 0.513 GB, free: 13.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.2112, allocations: 322.8 kB / 0.5133 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.647e-05/0.2113, allocations: 47.98 kB / 0.5134 GB, free: 13.06 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.155e-05/0.2114, allocations: 57.7 kB / 0.5134 GB, free: 13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.2116, allocations: 125.3 kB / 0.5135 GB, free: 12.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2116, allocations: 0 / 0.5135 GB, free: 12.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003341/0.2119, allocations: 169.5 kB / 0.5137 GB, free: 12.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.2119, allocations: 8 kB / 0.5137 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.2119, allocations: 4 kB / 0.5137 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.2119, allocations: 0 / 0.5137 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.566e-05/0.212, allocations: 24.11 kB / 0.5137 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.2121, allocations: 0 / 0.5137 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.856e-05/0.2121, allocations: 15.89 kB / 0.5137 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.2121, allocations: 4 kB / 0.5137 GB, free: 12.64 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.0001087/0.2122, allocations: 121.9 kB / 0.5139 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.239e-05/0.2123, allocations: 7.953 kB / 0.5139 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004897/0.2128, allocations: 333.4 kB / 0.5142 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003168/0.2131, allocations: 237.5 kB / 0.5144 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2131, allocations: 0 / 0.5144 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.2131, allocations: 4 kB / 0.5144 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.2141, allocations: 0.7179 MB / 0.5151 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2141, allocations: 4 kB / 0.5151 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.2143, allocations: 39.92 kB / 0.5152 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.2143, allocations: 8 kB / 0.5152 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.2143, allocations: 4 kB / 0.5152 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.2143, allocations: 4 kB / 0.5152 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2143, allocations: 0 / 0.5152 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000632/0.215, allocations: 0.5417 MB / 0.5157 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.28e-05/0.215, allocations: 23.78 kB / 0.5157 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.241e-05/0.215, allocations: 11.98 kB / 0.5157 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.2151, allocations: 0 / 0.5157 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.841e-05/0.2152, allocations: 23.97 kB / 0.5158 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.2152, allocations: 4 kB / 0.5158 GB, free: 10.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.663e-05/0.2153, allocations: 99.27 kB / 0.5159 GB, free: 10.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2153, allocations: 4.062 kB / 0.5159 GB, free: 10.4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002572/0.2178, allocations: 0.9346 MB / 0.5168 GB, free: 9.461 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.004771/0.2226, allocations: 2.404 MB / 0.5191 GB, free: 7.023 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004308/0.223, allocations: 232.1 kB / 0.5193 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.223, allocations: 0 / 0.5193 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.2232, allocations: 103.8 kB / 0.5194 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009144/0.2241, allocations: 148.4 kB / 0.5196 GB, free: 6.539 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003386/0.2275, allocations: 2.444 MB / 0.522 GB, free: 4.004 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001182/0.2276, allocations: 125 kB / 0.5221 GB, free: 3.859 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000143/0.2278, allocations: 42.05 kB / 0.5221 GB, free: 3.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.2279, allocations: 67.36 kB / 0.5222 GB, free: 3.754 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2279, allocations: 0 / 0.5222 GB, free: 3.754 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2408/0.4686, allocations: 31.51 MB / 0.553 GB, free: 54.99 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.43, allocations: 10.59 kB / 0.553 GB, free: 54.98 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: 19.33925100392662] Failed to read output from testmodel.py, exit status != 0: 12.606556080980226 12.615670602 12.458918065 Calling exit ...