Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.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.001321/0.001321, allocations: 81.38 kB / 19.43 MB, free: 1.844 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.001597/0.001597, allocations: 166.2 kB / 22.75 MB, free: 4.395 MB / 14.72 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 1.397/1.397, allocations: 177.1 MB / 203.1 MB, free: 8.113 MB / 190.1 MB " [Timeout remaining time 178] 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.128/0.128, allocations: 17.36 MB / 276.9 MB, free: 2.684 MB / 254.1 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.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 352.7 MB, free: 6.801 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.623e-05/3.839e-05, allocations: 9.062 kB / 352.7 MB, free: 6.793 MB / 334.1 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.H2O_ElectrochemicalCell): time 0.1902/0.1902, allocations: 28.63 MB / 381.3 MB, free: 55.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0192/0.2094, allocations: 17.13 MB / 398.4 MB, free: 42.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001773/0.2112, allocations: 27.81 kB / 398.5 MB, free: 42.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001414/0.2126, allocations: 468.1 kB / 398.9 MB, free: 41.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003715/0.2163, allocations: 1.26 MB / 400.2 MB, free: 40.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008522/0.2248, allocations: 2.973 MB / 403.2 MB, free: 37.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002759/0.2276, allocations: 2.17 MB / 405.3 MB, free: 35.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001463/0.2291, allocations: 1.108 MB / 406.4 MB, free: 34.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001388/0.2304, allocations: 1.345 MB / 407.8 MB, free: 32.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.2315, allocations: 0.8221 MB / 408.6 MB, free: 31.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002313/0.2317, allocations: 200 kB / 408.8 MB, free: 31.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004967/0.2367, allocations: 1.98 MB / 410.8 MB, free: 29.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003768/0.237, allocations: 478.4 kB / 411.3 MB, free: 29.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007513/0.2378, allocations: 0.7016 MB / 412 MB, free: 28.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007214/0.245, allocations: 4.573 MB / 416.5 MB, free: 23.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.245, allocations: 7.938 kB / 416.5 MB, free: 23.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.245, allocations: 0 / 416.5 MB, free: 23.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.369e-05/0.245, allocations: 4 kB / 416.5 MB, free: 23.97 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.003833/0.2489, allocations: 2.301 MB / 418.8 MB, free: 21.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.2489, allocations: 15.98 kB / 418.9 MB, free: 21.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001982/0.2509, allocations: 0.7687 MB / 419.6 MB, free: 20.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001614/0.2525, allocations: 1.041 MB / 420.7 MB, free: 19.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.2526, allocations: 238.7 kB / 420.9 MB, free: 19.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002252/0.2529, allocations: 168.3 kB / 421.1 MB, free: 19.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002763/0.2556, allocations: 2.237 MB / 423.3 MB, free: 17.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.197e-05/0.2557, allocations: 0 / 423.3 MB, free: 17.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001609/0.2558, allocations: 68 kB / 423.4 MB, free: 16.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.696e-05/0.2559, allocations: 44 kB / 423.4 MB, free: 16.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003194/0.259, allocations: 2.696 MB / 426.1 MB, free: 14.23 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008586/0.2676, allocations: 6.167 MB / 432.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.2691, allocations: 0.98 MB / 433.3 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000688/0.2698, allocations: 0.5096 MB / 433.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005986/0.2757, allocations: 3.076 MB / 436.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.2758, allocations: 39.22 kB / 436.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004452/0.2762, allocations: 103.1 kB / 437 MB, free: 3.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=71): time 2.865e-06/0.2762, allocations: 0 / 437 MB, free: 3.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=95): time 0.01881/0.295, allocations: 4.559 MB / 441.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.2951, allocations: 127.7 kB / 441.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/0.2972, allocations: 1.449 MB / 443.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.2973, allocations: 45.7 kB / 443.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009522/0.2982, allocations: 0.9239 MB / 444.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004473/0.2987, allocations: 365 kB / 444.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006159/0.2993, allocations: 351.3 kB / 444.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002424/0.2995, allocations: 361.9 kB / 445.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.3007, allocations: 0.6286 MB / 445.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002206/0.3029, allocations: 1.341 MB / 447.1 MB, free: 8.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00316/0.306, allocations: 1.933 MB / 449 MB, free: 6.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-05/0.3061, allocations: 12 kB / 449 MB, free: 6.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006878/0.3129, allocations: 2.464 MB / 451.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.394e-05/0.313, allocations: 16 kB / 451.5 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-05/0.313, allocations: 24 kB / 451.5 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002886/0.3159, allocations: 371.5 kB / 451.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002972/0.3189, allocations: 0.5656 MB / 452.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01038/0.3293, allocations: 7.391 MB / 459.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.3308, allocations: 75.86 kB / 459.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002232/0.3311, allocations: 108.2 kB / 460 MB, free: 10.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008695/0.3319, allocations: 373.1 kB / 460.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004102/0.3323, allocations: 151.2 kB / 460.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005025/0.3374, allocations: 1.535 MB / 462.1 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.3374, allocations: 8 kB / 462.1 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.3374, allocations: 4 kB / 462.1 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.3374, allocations: 3.984 kB / 462.1 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007392/0.3448, allocations: 2.658 MB / 464.8 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-05/0.3448, allocations: 7.984 kB / 464.8 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009637/0.3458, allocations: 215.7 kB / 465 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002894/0.3487, allocations: 412.4 kB / 465.4 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/0.3488, allocations: 43.98 kB / 465.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008973/0.3577, allocations: 7.184 MB / 472.6 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-05/0.3577, allocations: 11.94 kB / 472.6 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005501/0.3632, allocations: 2.175 MB / 474.8 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003316/0.3636, allocations: 115.2 kB / 474.9 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001816/0.3638, allocations: 31.98 kB / 474.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000702/0.3645, allocations: 28 kB / 475 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000216/0.3647, allocations: 116.2 kB / 475.1 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-05/0.3648, allocations: 47.98 kB / 475.1 MB, free: 10.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00132/0.3661, allocations: 0.9713 MB / 476.1 MB, free: 9.938 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3661, allocations: 0 / 476.1 MB, free: 9.938 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002797/0.3689, allocations: 0.8182 MB / 476.9 MB, free: 9.117 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn) * 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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001803/0.3707, allocations: 0.9309 MB / 477.9 MB, free: 8.176 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003843/0.3745, allocations: 1.71 MB / 479.6 MB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/0.3745, allocations: 0 / 479.6 MB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.3762, allocations: 0.9609 MB / 480.5 MB, free: 5.438 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/0.3777, allocations: 232.7 kB / 480.8 MB, free: 5.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004996/0.3827, allocations: 2.784 MB / 483.5 MB, free: 2.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007799/0.3835, allocations: 0.6408 MB / 484.2 MB, free: 1.613 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001095/0.3846, allocations: 312.7 kB / 484.5 MB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004309/0.385, allocations: 172.4 kB / 484.7 MB, free: 1.141 MB / 382.1 MB Notification: Performance of SimCode: time 1.422e-06/0.385, allocations: 0 / 484.7 MB, free: 1.141 MB / 382.1 MB Notification: Performance of Templates: time 0.04878/0.4338, allocations: 27.88 MB / 0.5005 GB, free: 5.453 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.960735742002726] Failed to read output from testmodel.py, exit status != 0: 0.4438614211976528 0.588316642 0.340512279 Calling exit ...