Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.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.001329/0.001329, allocations: 79.36 kB / 19.18 MB, free: 2.52 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.00156/0.00156, allocations: 167.2 kB / 22.46 MB, free: 5.375 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.43/1.43, allocations: 177.1 MB / 202.8 MB, free: 9.184 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.1674/0.1674, allocations: 17.37 MB / 276.6 MB, free: 15.3 MB / 270.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.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 411.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.062e-05/3.239e-05, allocations: 2.281 kB / 411.9 MB, free: 4.453 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.ElectrochemicalCell): time 0.04178/0.04182, allocations: 30.21 MB / 442.2 MB, free: 6.367 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2111/0.2529, allocations: 25.29 MB / 467.4 MB, free: 25.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.2547, allocations: 32.06 kB / 467.5 MB, free: 25.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00179/0.2565, allocations: 0.603 MB / 468.1 MB, free: 24.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006829/0.2633, allocations: 2.241 MB / 470.3 MB, free: 23.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01068/0.274, allocations: 4.05 MB / 474.4 MB, free: 21.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003909/0.2779, allocations: 2.949 MB / 477.3 MB, free: 19.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001711/0.2796, allocations: 1.343 MB / 478.7 MB, free: 18.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001905/0.2815, allocations: 1.898 MB / 480.6 MB, free: 17.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/0.2832, allocations: 1.182 MB / 481.7 MB, free: 16.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003436/0.2835, allocations: 265.3 kB / 482 MB, free: 16.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008381/0.2919, allocations: 2.983 MB / 485 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006151/0.2925, allocations: 0.6099 MB / 485.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001461/0.294, allocations: 0.9394 MB / 486.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.3051, allocations: 6.542 MB / 493.1 MB, free: 7.801 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3051, allocations: 3.984 kB / 493.1 MB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3051, allocations: 0 / 493.1 MB, free: 7.797 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.054e-05/0.3051, allocations: 2.656 kB / 493.1 MB, free: 7.797 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.004446/0.3096, allocations: 3.064 MB / 496.1 MB, free: 4.695 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.3096, allocations: 13.06 kB / 496.2 MB, free: 4.684 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00212/0.3117, allocations: 0.5559 MB / 496.7 MB, free: 4.129 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.3136, allocations: 1.242 MB / 498 MB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.3137, allocations: 271.7 kB / 498.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002951/0.314, allocations: 227.2 kB / 498.4 MB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003587/0.3176, allocations: 2.683 MB / 0.4894 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.748e-05/0.3176, allocations: 0 / 0.4894 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002389/0.3179, allocations: 92 kB / 0.4895 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.622e-05/0.3179, allocations: 52 kB / 0.4895 GB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00566/0.3236, allocations: 3.297 MB / 0.4927 GB, free: 12.14 MB / 382.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.01395/0.3375, allocations: 7.006 MB / 0.4996 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.3404, allocations: 1.522 MB / 0.5011 GB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.3419, allocations: 0.8477 MB / 0.5019 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01036/0.3522, allocations: 4.267 MB / 0.5061 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.3523, allocations: 47.81 kB / 0.5061 GB, free: 14.33 MB / 398.1 MB Notification: Performance of pre-optimization done (n=128): time 3.307e-06/0.3523, allocations: 2.688 kB / 0.5061 GB, free: 14.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.03258/0.3849, allocations: 8.1 MB / 0.514 GB, free: 6.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.675e-05/0.3849, allocations: 101.8 kB / 0.5141 GB, free: 6.156 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001993/0.3869, allocations: 1.321 MB / 0.5154 GB, free: 4.824 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000169/0.3871, allocations: 57.7 kB / 0.5155 GB, free: 4.762 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008306/0.3879, allocations: 1.077 MB / 0.5165 GB, free: 3.672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006527/0.3886, allocations: 0.6468 MB / 0.5171 GB, free: 3.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007745/0.3894, allocations: 481 kB / 0.5176 GB, free: 2.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3895, allocations: 301.1 kB / 0.5179 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001555/0.3911, allocations: 0.8171 MB / 0.5187 GB, free: 1.426 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002382/0.3934, allocations: 1.668 MB / 0.5203 GB, free: 15.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004234/0.3977, allocations: 2.609 MB / 0.5229 GB, free: 12.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.298e-05/0.3977, allocations: 8 kB / 0.5229 GB, free: 12.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007791/0.4055, allocations: 3.05 MB / 0.5259 GB, free: 9.375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.634e-05/0.4055, allocations: 19.12 kB / 0.5259 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.23e-05/0.4056, allocations: 28 kB / 0.5259 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003324/0.4089, allocations: 0.5146 MB / 0.5264 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003877/0.4128, allocations: 0.7996 MB / 0.5272 GB, free: 8.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01021/0.423, allocations: 7.514 MB / 0.5345 GB, free: 76 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/0.4248, allocations: 95.98 kB / 0.5346 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003922/0.4252, allocations: 142.8 kB / 0.5347 GB, free: 15.84 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * 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,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001183/0.4264, allocations: 455.5 kB / 0.5352 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005188/0.4269, allocations: 162.9 kB / 0.5353 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007338/0.4342, allocations: 2.568 MB / 0.5378 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.4342, allocations: 18.72 kB / 0.5379 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.699e-06/0.4342, allocations: 4 kB / 0.5379 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.586e-05/0.4343, allocations: 14.58 kB / 0.5379 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.4447, allocations: 4.252 MB / 0.542 GB, free: 8.246 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.269e-05/0.4448, allocations: 14.66 kB / 0.542 GB, free: 8.234 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001789/0.4466, allocations: 415.4 kB / 0.5424 GB, free: 7.828 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003523/0.4501, allocations: 0.5455 MB / 0.543 GB, free: 7.273 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001961/0.4503, allocations: 86.61 kB / 0.5431 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008848/0.4591, allocations: 7.288 MB / 0.5502 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.456e-05/0.4591, allocations: 19.88 kB / 0.5502 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00754/0.4667, allocations: 3.434 MB / 0.5535 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004146/0.4671, allocations: 172.2 kB / 0.5537 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002882/0.4674, allocations: 52 kB / 0.5538 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.4684, allocations: 51.98 kB / 0.5538 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003377/0.4688, allocations: 196.6 kB / 0.554 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001741/0.4689, allocations: 95.97 kB / 0.5541 GB, free: 11.28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001159/0.4701, allocations: 0.8313 MB / 0.5549 GB, free: 10.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4701, allocations: 0 / 0.5549 GB, free: 10.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003733/0.4738, allocations: 1.214 MB / 0.5561 GB, free: 9.227 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * 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,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002886/0.4767, allocations: 1.382 MB / 0.5574 GB, free: 7.898 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005419/0.4821, allocations: 2.369 MB / 0.5598 GB, free: 5.523 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-05/0.4822, allocations: 4 kB / 0.5598 GB, free: 5.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00247/0.4846, allocations: 1.361 MB / 0.5611 GB, free: 4.113 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001966/0.4866, allocations: 332.8 kB / 0.5614 GB, free: 3.824 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006821/0.4934, allocations: 3.903 MB / 0.5652 GB, free: 15.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.4945, allocations: 0.8563 MB / 0.566 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001549/0.496, allocations: 452.4 kB / 0.5665 GB, free: 14.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007432/0.4968, allocations: 289.3 kB / 0.5668 GB, free: 14.35 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4968, allocations: 0 / 0.5668 GB, free: 14.35 MB / 462.1 MB Notification: Performance of Templates: time 0.07167/0.5684, allocations: 41.2 MB / 0.607 GB, free: 5.531 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & ./Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.600985042750835] Failed to read output from testmodel.py, exit status != 0: 0.5792013294994831 0.602579734 0.292820887 Calling exit ...