Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001311/0.001311, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.001471/0.001471, allocations: 178.2 kB / 23.21 MB, free: 1.348 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.848/0.848, allocations: 177.1 MB / 203.5 MB, free: 5.691 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.07982/0.07982, allocations: 17.36 MB / 277.3 MB, free: 11.86 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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: translateModel(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 412.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.3e-05/2.456e-05, allocations: 3.797 kB / 412.7 MB, free: 13.11 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.01902/0.01904, allocations: 27.44 MB / 440.1 MB, free: 12.89 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01305/0.03209, allocations: 16.03 MB / 456.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007022/0.03279, allocations: 27.75 kB / 456.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008152/0.0336, allocations: 431 kB / 456.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001504/0.03511, allocations: 0.8384 MB / 457.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005468/0.04058, allocations: 2.934 MB / 460.4 MB, free: 10.22 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.04198, allocations: 1.695 MB / 462.1 MB, free: 8.52 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007186/0.0427, allocations: 0.7351 MB / 462.8 MB, free: 7.766 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008851/0.04359, allocations: 1.025 MB / 463.9 MB, free: 6.738 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006472/0.04423, allocations: 0.6429 MB / 464.5 MB, free: 6.094 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001392/0.04437, allocations: 140 kB / 464.6 MB, free: 5.957 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002413/0.04679, allocations: 1.68 MB / 466.3 MB, free: 4.273 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002061/0.04699, allocations: 366.8 kB / 466.7 MB, free: 3.914 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003107/0.0473, allocations: 0.534 MB / 467.2 MB, free: 3.379 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002955/0.05026, allocations: 3.748 MB / 471 MB, free: 15.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.05026, allocations: 0 / 471 MB, free: 15.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.05026, allocations: 0 / 471 MB, free: 15.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.05028, allocations: 0 / 471 MB, free: 15.62 MB / 378.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.001631/0.05191, allocations: 1.881 MB / 472.8 MB, free: 13.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.05194, allocations: 12.03 kB / 472.8 MB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007582/0.0527, allocations: 399.1 kB / 473.2 MB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009502/0.05365, allocations: 0.919 MB / 474.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.05375, allocations: 197.8 kB / 474.3 MB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.05388, allocations: 116.4 kB / 474.5 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.05536, allocations: 1.672 MB / 476.1 MB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.05539, allocations: 7.938 kB / 476.1 MB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.253e-05/0.05547, allocations: 52 kB / 476.2 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.05548, allocations: 31.94 kB / 476.2 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/0.05748, allocations: 2.104 MB / 478.3 MB, free: 8.066 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004219/0.0617, allocations: 4.696 MB / 483 MB, free: 3.266 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007774/0.06248, allocations: 0.6731 MB / 483.7 MB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003421/0.06282, allocations: 340.3 kB / 484 MB, free: 2.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003037/0.06586, allocations: 2.653 MB / 486.7 MB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.06588, allocations: 42.48 kB / 486.7 MB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001256/0.066, allocations: 63.41 kB / 486.8 MB, free: 15.44 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 1.413e-06/0.06601, allocations: 0 / 486.8 MB, free: 15.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009309/0.06694, allocations: 0.5928 MB / 487.4 MB, free: 14.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.06698, allocations: 111.1 kB / 487.5 MB, free: 14.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007918/0.06777, allocations: 1.169 MB / 488.7 MB, free: 13.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.06779, allocations: 29.7 kB / 488.7 MB, free: 13.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003155/0.06811, allocations: 0.7984 MB / 489.5 MB, free: 12.67 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.96e-05/0.06818, allocations: 150.9 kB / 489.6 MB, free: 12.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.06837, allocations: 266.7 kB / 489.9 MB, free: 12.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.06849, allocations: 402.7 kB / 490.3 MB, free: 11.85 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003196/0.06881, allocations: 326.4 kB / 490.6 MB, free: 11.53 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006141/0.06943, allocations: 1.058 MB / 491.7 MB, free: 10.11 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009698/0.0704, allocations: 1.399 MB / 493.1 MB, free: 8.344 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.07041, allocations: 12 kB / 493.1 MB, free: 8.332 MB / 394.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001622/0.07203, allocations: 1.443 MB / 494.5 MB, free: 6.875 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.07205, allocations: 16 kB / 494.5 MB, free: 6.859 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.07207, allocations: 28.88 kB / 494.6 MB, free: 6.832 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003596/0.07243, allocations: 157.4 kB / 494.7 MB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005535/0.07298, allocations: 371.4 kB / 495.1 MB, free: 6.309 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/0.07463, allocations: 3.82 MB / 498.9 MB, free: 2.223 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.07501, allocations: 67.86 kB / 499 MB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.151e-05/0.07509, allocations: 95.98 kB / 499.1 MB, free: 2.062 MB / 394.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.0002778/0.07537, allocations: 320.5 kB / 499.4 MB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.632e-05/0.07547, allocations: 99.34 kB / 499.5 MB, free: 1.645 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009425/0.07641, allocations: 0.8524 MB / 0.4886 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.07641, allocations: 3.938 kB / 0.4886 GB, free: 0.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.07641, allocations: 4 kB / 0.4886 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.07642, allocations: 0 / 0.4886 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.07757, allocations: 1.065 MB / 0.4896 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.07758, allocations: 4 kB / 0.4896 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.0777, allocations: 55.91 kB / 0.4897 GB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003293/0.07803, allocations: 171.5 kB / 0.4899 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.07805, allocations: 16 kB / 0.4899 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001471/0.07952, allocations: 3.695 MB / 0.4935 GB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.07952, allocations: 0 / 0.4935 GB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006493/0.08017, allocations: 0.8468 MB / 0.4943 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.919e-05/0.08025, allocations: 87.31 kB / 0.4944 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.439e-05/0.0803, allocations: 8 kB / 0.4944 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.08048, allocations: 8 kB / 0.4944 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.295e-05/0.08052, allocations: 39.83 kB / 0.4944 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.08054, allocations: 15.98 kB / 0.4945 GB, free: 10.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006145/0.08115, allocations: 0.8191 MB / 0.4953 GB, free: 9.516 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08115, allocations: 0 / 0.4953 GB, free: 9.516 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001103/0.08226, allocations: 0.6461 MB / 0.4959 GB, free: 8.867 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.001024/0.08328, allocations: 0.7659 MB / 0.4966 GB, free: 8.094 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008685/0.08415, allocations: 0.777 MB / 0.4974 GB, free: 7.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.08415, allocations: 2 kB / 0.4974 GB, free: 7.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002851/0.08444, allocations: 381.6 kB / 0.4978 GB, free: 6.922 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/0.08498, allocations: 140.2 kB / 0.4979 GB, free: 6.781 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.08663, allocations: 1.776 MB / 0.4996 GB, free: 4.941 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.08691, allocations: 480.5 kB / 0.5001 GB, free: 4.438 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002096/0.08712, allocations: 188.3 kB / 0.5003 GB, free: 4.254 MB / 410.7 MB Notification: Performance of SimCode: time 4.91e-07/0.08712, allocations: 0 / 0.5003 GB, free: 4.254 MB / 410.7 MB Notification: Performance of Templates: time 0.02307/0.1102, allocations: 37.53 MB / 0.5369 GB, free: 14.77 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.164002652280033] Failed to read output from testmodel.py, exit status != 0: 0.242864690721035 0.12333727000000001 0.071489889 Calling exit ...