Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.0007487/0.0007487, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.000758/0.000758, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8404/0.8404, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.08282/0.08282, allocations: 17.45 MB / 276.6 MB, free: 11.76 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.253e-06/1.253e-06, allocations: 3.938 kB / 411.6 MB, free: 244 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.685e-05/1.811e-05, allocations: 3.969 kB / 411.6 MB, free: 240 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2): time 0.02214/0.02216, allocations: 27.42 MB / 439 MB, free: 4.879 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1574/0.1795, allocations: 16.03 MB / 455.1 MB, free: 56.53 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000582/0.1801, allocations: 24.69 kB / 455.1 MB, free: 56.52 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0015/0.1816, allocations: 444.9 kB / 455.5 MB, free: 56.29 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001227/0.1828, allocations: 0.8343 MB / 456.4 MB, free: 55.8 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003937/0.1868, allocations: 2.935 MB / 459.3 MB, free: 54.07 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.1878, allocations: 1.696 MB / 461 MB, free: 53.21 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005029/0.1883, allocations: 0.7372 MB / 461.7 MB, free: 52.87 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005467/0.1889, allocations: 1.02 MB / 462.7 MB, free: 52.49 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005082/0.1894, allocations: 0.6426 MB / 463.4 MB, free: 52.32 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001163/0.1895, allocations: 142.2 kB / 463.5 MB, free: 52.32 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002483/0.192, allocations: 1.683 MB / 465.2 MB, free: 51.94 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.1922, allocations: 370.4 kB / 465.6 MB, free: 51.71 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003104/0.1925, allocations: 0.5269 MB / 466.1 MB, free: 51.49 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003017/0.1955, allocations: 3.755 MB / 469.9 MB, free: 49.91 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1955, allocations: 0 / 469.9 MB, free: 49.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1955, allocations: 0 / 469.9 MB, free: 49.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.1955, allocations: 0 / 469.9 MB, free: 49.91 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.001634/0.1971, allocations: 1.875 MB / 471.7 MB, free: 48.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.1972, allocations: 9.781 kB / 471.7 MB, free: 48.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001231/0.1973, allocations: 182.3 kB / 471.9 MB, free: 48.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007306/0.198, allocations: 391.7 kB / 472.3 MB, free: 48.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008506/0.1989, allocations: 0.9169 MB / 473.2 MB, free: 48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.218e-05/0.199, allocations: 203.3 kB / 473.4 MB, free: 47.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.1991, allocations: 117.4 kB / 473.5 MB, free: 47.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.2004, allocations: 1.672 MB / 475.2 MB, free: 47.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.2004, allocations: 3.188 kB / 475.2 MB, free: 47.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.179e-05/0.2004, allocations: 45.59 kB / 475.2 MB, free: 47.03 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.2005, allocations: 31.94 kB / 475.3 MB, free: 47.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.202, allocations: 2.103 MB / 477.4 MB, free: 46.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003603/0.2056, allocations: 4.861 MB / 482.2 MB, free: 43.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007044/0.2063, allocations: 0.6863 MB / 482.9 MB, free: 43.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003363/0.2067, allocations: 329.8 kB / 483.2 MB, free: 43.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003098/0.2098, allocations: 2.654 MB / 485.9 MB, free: 42.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.436e-05/0.2098, allocations: 37.31 kB / 485.9 MB, free: 41.96 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001361/0.2099, allocations: 84.84 kB / 486 MB, free: 41.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 2.826e-06/0.2099, allocations: 0.6094 kB / 486 MB, free: 41.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008292/0.2108, allocations: 0.6063 MB / 486.6 MB, free: 41.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.643e-05/0.2108, allocations: 110.8 kB / 486.7 MB, free: 41.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008262/0.2116, allocations: 1.247 MB / 488 MB, free: 40.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.2116, allocations: 34.67 kB / 488 MB, free: 40.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002238/0.2119, allocations: 0.802 MB / 488.8 MB, free: 40.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.171e-05/0.2119, allocations: 132.3 kB / 488.9 MB, free: 40.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.2121, allocations: 269.1 kB / 489.2 MB, free: 40.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.475e-05/0.2121, allocations: 357.4 kB / 489.6 MB, free: 39.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003102/0.2125, allocations: 320 kB / 489.9 MB, free: 39.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004782/0.2129, allocations: 1.058 MB / 490.9 MB, free: 38.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000811/0.2137, allocations: 1.408 MB / 492.3 MB, free: 37.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.2138, allocations: 7.438 kB / 492.3 MB, free: 37.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001306/0.2151, allocations: 1.459 MB / 493.8 MB, free: 36.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.2151, allocations: 16.31 kB / 493.8 MB, free: 36.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/0.2151, allocations: 26.38 kB / 493.8 MB, free: 36.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003629/0.2155, allocations: 155 kB / 494 MB, free: 36.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005865/0.2161, allocations: 371.3 kB / 494.4 MB, free: 36.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/0.2172, allocations: 3.855 MB / 498.2 MB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004642/0.2177, allocations: 74.67 kB / 498.3 MB, free: 32.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.514e-05/0.2178, allocations: 97.89 kB / 498.4 MB, free: 32.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002704/0.2181, allocations: 319.5 kB / 498.7 MB, free: 32.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.555e-05/0.2182, allocations: 105.4 kB / 498.8 MB, free: 32.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000901/0.2191, allocations: 0.8571 MB / 499.7 MB, free: 32.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.2191, allocations: 3.938 kB / 499.7 MB, free: 32.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.2191, allocations: 1.125 kB / 499.7 MB, free: 32.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.2191, allocations: 3.375 kB / 499.7 MB, free: 32.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.2202, allocations: 1.166 MB / 0.4891 GB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.2202, allocations: 2.438 kB / 0.4891 GB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.2204, allocations: 58 kB / 0.4892 GB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003713/0.2207, allocations: 176.8 kB / 0.4893 GB, free: 31.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.2208, allocations: 24.88 kB / 0.4893 GB, free: 31.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001038/0.2218, allocations: 3.732 MB / 0.493 GB, free: 27.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.2218, allocations: 8.625 kB / 0.493 GB, free: 27.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006651/0.2225, allocations: 0.8618 MB / 0.4938 GB, free: 27.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.439e-05/0.2226, allocations: 93.61 kB / 0.4939 GB, free: 26.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.174e-05/0.2226, allocations: 8.703 kB / 0.4939 GB, free: 26.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.2228, allocations: 9.797 kB / 0.4939 GB, free: 26.97 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.2229, allocations: 44.06 kB / 0.494 GB, free: 26.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.2229, allocations: 16.75 kB / 0.494 GB, free: 26.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000698/0.2236, allocations: 0.9002 MB / 0.4949 GB, free: 26.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2236, allocations: 0 / 0.4949 GB, free: 26.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001287/0.2249, allocations: 0.6281 MB / 0.4955 GB, free: 26.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (cathode.temperature,anode.temperature) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001604/0.2265, allocations: 2.057 MB / 0.4975 GB, free: 25.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009782/0.2274, allocations: 0.7797 MB / 0.4983 GB, free: 24.83 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2274, allocations: 0 / 0.4983 GB, free: 24.83 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002671/0.2277, allocations: 380.9 kB / 0.4986 GB, free: 24.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006377/0.2283, allocations: 172.3 kB / 0.4988 GB, free: 24.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007016/0.2354, allocations: 9.547 MB / 0.5081 GB, free: 17.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.2357, allocations: 481.5 kB / 0.5086 GB, free: 17.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005358/0.2362, allocations: 282.2 kB / 0.5088 GB, free: 17.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003459/0.2365, allocations: 499.4 kB / 0.5093 GB, free: 17.04 MB / 410.7 MB Notification: Performance of SimCode: time 1.021e-06/0.2365, allocations: 0 / 0.5093 GB, free: 17.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03895/0.2755, allocations: 30.87 MB / 0.5395 GB, free: 4.891 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/8.16, allocations: 8 kB / 0.5395 GB, free: 4.883 MB / 426.7 MB " [Timeout remaining time 652] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.9146873857826] Failed to read output from testmodel.py, exit status != 0: 8.261033296585083 8.269637505 8.07243482 Calling exit ...