Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.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.001245/0.001245, allocations: 97.88 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.001386/0.001386, allocations: 215.7 kB / 23.03 MB, free: 4.918 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.379/1.379, allocations: 207.7 MB / 233.9 MB, free: 9.785 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.04977/0.04977, allocations: 9.149 MB / 295.3 MB, free: 12.5 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.CheckDerivativesHelium,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium",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.002098/0.002098, allocations: 71.83 kB / 411.9 MB, free: 46.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0837/0.08579, allocations: 50.75 MB / 462.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01956/0.1054, allocations: 15.73 MB / 478.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01598/0.1213, allocations: 14.86 MB / 493.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.975e-05/0.1214, allocations: 0 / 493.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006877/0.1221, allocations: 235.3 kB / 493.4 MB, free: 13.56 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.0165/0.1386, allocations: 6.347 MB / 499.8 MB, free: 7.199 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001601/0.1402, allocations: 0.5909 MB / 0.4886 GB, free: 6.605 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002325/0.1404, allocations: 183 kB / 0.4888 GB, free: 6.426 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.967e-05/0.1405, allocations: 9.297 kB / 0.4888 GB, free: 6.418 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.1406, allocations: 83.64 kB / 0.4889 GB, free: 6.336 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.1408, allocations: 51.78 kB / 0.489 GB, free: 6.285 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.275e-05/0.1408, allocations: 3.938 kB / 0.489 GB, free: 6.281 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01323/0.154, allocations: 7.076 MB / 0.4959 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.906e-05/0.154, allocations: 15.92 kB / 0.4959 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.634e-05/0.1541, allocations: 47.8 kB / 0.4959 GB, free: 15.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007726/0.1618, allocations: 3.429 MB / 0.4993 GB, free: 11.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1618, allocations: 0 / 0.4993 GB, free: 11.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1618, allocations: 0 / 0.4993 GB, free: 11.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1619, allocations: 0 / 0.4993 GB, free: 11.69 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.001692/0.1635, allocations: 0.8447 MB / 0.5001 GB, free: 10.81 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.1636, allocations: 11.98 kB / 0.5001 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.789e-05/0.1636, allocations: 4 kB / 0.5001 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.45e-05/0.1637, allocations: 42.48 kB / 0.5002 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.1638, allocations: 35.89 kB / 0.5002 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.1641, allocations: 137 kB / 0.5003 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-06/0.1641, allocations: 7.938 kB / 0.5003 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.1641, allocations: 8 kB / 0.5003 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002109/0.1643, allocations: 132.9 kB / 0.5005 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.1643, allocations: 0 / 0.5005 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.1643, allocations: 3.938 kB / 0.5005 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.1643, allocations: 4 kB / 0.5005 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000148/0.1645, allocations: 107.9 kB / 0.5006 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006312/0.1651, allocations: 447.9 kB / 0.501 GB, free: 9.797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.1654, allocations: 121.2 kB / 0.5011 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.1655, allocations: 61.81 kB / 0.5012 GB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05021/0.2157, allocations: 10.92 MB / 0.5118 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.2157, allocations: 38.56 kB / 0.5119 GB, free: 14.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.354e-06/0.2157, allocations: 0 / 0.5119 GB, free: 14.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006902/0.2164, allocations: 221.4 kB / 0.5121 GB, free: 14.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.2165, allocations: 81.11 kB / 0.5122 GB, free: 14.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.2166, allocations: 121.8 kB / 0.5123 GB, free: 14.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.2166, allocations: 33.7 kB / 0.5123 GB, free: 14.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.073e-05/0.2167, allocations: 88.53 kB / 0.5124 GB, free: 14.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.9e-05/0.2168, allocations: 87.27 kB / 0.5125 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/0.2168, allocations: 37.64 kB / 0.5125 GB, free: 13.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.217, allocations: 334.8 kB / 0.5128 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.436e-05/0.2171, allocations: 39.98 kB / 0.5129 GB, free: 13.53 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.582e-05/0.2171, allocations: 65.7 kB / 0.5129 GB, free: 13.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.2173, allocations: 113.7 kB / 0.513 GB, free: 13.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2173, allocations: 0 / 0.513 GB, free: 13.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002522/0.2176, allocations: 173.4 kB / 0.5132 GB, free: 13.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.2176, allocations: 10.66 kB / 0.5132 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.2176, allocations: 0 / 0.5132 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.2176, allocations: 0 / 0.5132 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.315e-05/0.2177, allocations: 23.98 kB / 0.5132 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.158e-06/0.2177, allocations: 8.219 kB / 0.5132 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.991e-05/0.2178, allocations: 15.89 kB / 0.5133 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.2178, allocations: 4.375 kB / 0.5133 GB, free: 13.11 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.000109/0.2179, allocations: 122 kB / 0.5134 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.625e-05/0.218, allocations: 11.95 kB / 0.5134 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005006/0.2185, allocations: 329.6 kB / 0.5137 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003193/0.2188, allocations: 245.5 kB / 0.5139 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.2188, allocations: 4 kB / 0.5139 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2188, allocations: 4 kB / 0.514 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009618/0.2198, allocations: 0.7183 MB / 0.5147 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2198, allocations: 0 / 0.5147 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.2199, allocations: 39.92 kB / 0.5147 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.2199, allocations: 0 / 0.5147 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.22, allocations: 8 kB / 0.5147 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.22, allocations: 0 / 0.5147 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.22, allocations: 0 / 0.5147 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006024/0.2206, allocations: 0.5456 MB / 0.5152 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.988e-05/0.2206, allocations: 23.8 kB / 0.5153 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.2206, allocations: 8 kB / 0.5153 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.2207, allocations: 4 kB / 0.5153 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.2208, allocations: 15.97 kB / 0.5153 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.2208, allocations: 8 kB / 0.5153 GB, free: 10.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.202e-05/0.2209, allocations: 99.2 kB / 0.5154 GB, free: 10.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2209, allocations: 0 / 0.5154 GB, free: 10.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002345/0.2232, allocations: 0.9385 MB / 0.5163 GB, free: 9.922 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.004799/0.228, allocations: 2.412 MB / 0.5187 GB, free: 7.477 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004229/0.2284, allocations: 231.8 kB / 0.5189 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2284, allocations: 0 / 0.5189 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.2286, allocations: 103.9 kB / 0.519 GB, free: 7.137 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009316/0.2295, allocations: 144.5 kB / 0.5191 GB, free: 7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003296/0.2328, allocations: 2.451 MB / 0.5215 GB, free: 4.457 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001299/0.2329, allocations: 121 kB / 0.5216 GB, free: 4.316 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000154/0.2331, allocations: 49.92 kB / 0.5217 GB, free: 4.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.2332, allocations: 63.42 kB / 0.5217 GB, free: 4.207 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2332, allocations: 3.938 kB / 0.5217 GB, free: 4.203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2379/0.4711, allocations: 31.51 MB / 0.5525 GB, free: 55.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.37, allocations: 6.984 kB / 0.5525 GB, free: 55.21 MB / 398.1 MB " [Timeout remaining time 647] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.529161388985813] Failed to read output from testmodel.py, exit status != 0: 12.55505987093784 12.565145986 12.400966334 Calling exit ...