Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.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.0009492/0.0009492, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.0009303/0.0009303, allocations: 173 kB / 23.5 MB, free: 1.055 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.9546/0.9546, allocations: 177.1 MB / 203.8 MB, free: 5.621 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.1005/0.1005, allocations: 17.46 MB / 277.7 MB, free: 11.62 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: translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 353.6 MB, free: 10.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.997e-05/3.166e-05, allocations: 16.72 kB / 353.6 MB, free: 10.16 MB / 282.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.ClimateChange.MethanElectrosynthesis): time 0.02735/0.02738, allocations: 33.03 MB / 386.6 MB, free: 9.246 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02054/0.04792, allocations: 22.13 MB / 408.7 MB, free: 3.039 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001289/0.04921, allocations: 27.81 kB / 408.8 MB, free: 3.012 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.05029, allocations: 0.5386 MB / 409.3 MB, free: 2.469 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002409/0.0527, allocations: 1.357 MB / 410.7 MB, free: 1.102 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1469/0.1996, allocations: 3.439 MB / 414.1 MB, free: 35.5 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002826/0.2024, allocations: 2.481 MB / 416.6 MB, free: 34.84 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/0.2039, allocations: 1.302 MB / 417.9 MB, free: 34.7 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001818/0.2057, allocations: 1.54 MB / 419.4 MB, free: 34.62 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001429/0.2071, allocations: 1.001 MB / 420.4 MB, free: 34.54 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004618/0.2076, allocations: 233.7 kB / 420.7 MB, free: 34.54 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005228/0.2128, allocations: 2.254 MB / 422.9 MB, free: 34.44 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003428/0.2132, allocations: 0.5472 MB / 423.5 MB, free: 34.37 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008262/0.214, allocations: 0.8242 MB / 424.3 MB, free: 34.29 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005027/0.219, allocations: 4.368 MB / 428.6 MB, free: 32.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.219, allocations: 0 / 428.6 MB, free: 32.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.219, allocations: 2.656 kB / 428.6 MB, free: 32.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.485e-05/0.2191, allocations: 0.8438 kB / 428.6 MB, free: 32.84 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.003155/0.2222, allocations: 2.762 MB / 431.4 MB, free: 31.19 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.2223, allocations: 10.03 kB / 431.4 MB, free: 31.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001508/0.2238, allocations: 0.8928 MB / 432.3 MB, free: 30.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.225, allocations: 1.164 MB / 433.5 MB, free: 30.21 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.2252, allocations: 255.6 kB / 433.7 MB, free: 30.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003407/0.2255, allocations: 187.9 kB / 433.9 MB, free: 29.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002207/0.2277, allocations: 1.833 MB / 435.7 MB, free: 29.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.2278, allocations: 3.125 kB / 435.7 MB, free: 29.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.2279, allocations: 78.38 kB / 435.8 MB, free: 29.19 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.05e-05/0.2279, allocations: 49.88 kB / 435.9 MB, free: 29.19 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002113/0.23, allocations: 1.698 MB / 437.6 MB, free: 28.58 MB / 330.7 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.006678/0.2367, allocations: 7.008 MB / 444.6 MB, free: 22.42 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.2378, allocations: 0.8736 MB / 445.5 MB, free: 21.54 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004699/0.2383, allocations: 388.5 kB / 445.8 MB, free: 21.14 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003667/0.242, allocations: 3.208 MB / 449 MB, free: 17.96 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.242, allocations: 48.7 kB / 449.1 MB, free: 17.91 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003857/0.2424, allocations: 185.6 kB / 449.3 MB, free: 17.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=81): time 2.314e-06/0.2424, allocations: 3.469 kB / 449.3 MB, free: 17.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=115): time 0.01295/0.2553, allocations: 5.815 MB / 455.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.2554, allocations: 123.7 kB / 455.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009351/0.2563, allocations: 1.32 MB / 456.5 MB, free: 10.51 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.975e-05/0.2564, allocations: 45.7 kB / 456.6 MB, free: 10.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003902/0.2567, allocations: 1.096 MB / 457.7 MB, free: 9.355 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.257, allocations: 440.9 kB / 458.1 MB, free: 8.934 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003859/0.2574, allocations: 417 kB / 458.5 MB, free: 8.516 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.848e-05/0.2574, allocations: 480.7 kB / 459 MB, free: 8.043 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005444/0.258, allocations: 367.8 kB / 459.3 MB, free: 7.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008198/0.2588, allocations: 1.391 MB / 460.7 MB, free: 5.832 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.2603, allocations: 1.901 MB / 462.6 MB, free: 3.602 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.2603, allocations: 8 kB / 462.6 MB, free: 3.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.003724/0.264, allocations: 2.227 MB / 464.9 MB, free: 1.531 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.2641, allocations: 16 kB / 464.9 MB, free: 1.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/0.2641, allocations: 24 kB / 464.9 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002812/0.2669, allocations: 0.9264 MB / 465.8 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007379/0.2676, allocations: 441.9 kB / 466.3 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006139/0.2738, allocations: 8.006 MB / 474.3 MB, free: 7.855 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009134/0.2747, allocations: 98.44 kB / 474.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000138/0.2748, allocations: 124 kB / 474.5 MB, free: 7.641 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0004375/0.2753, allocations: 287.8 kB / 474.8 MB, free: 7.383 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002512/0.2755, allocations: 179.1 kB / 474.9 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003212/0.2787, allocations: 1.614 MB / 476.6 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.2787, allocations: 12 kB / 476.6 MB, free: 5.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.2788, allocations: 4 kB / 476.6 MB, free: 5.621 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.2788, allocations: 7.969 kB / 476.6 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004928/0.2837, allocations: 2.821 MB / 479.4 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.2837, allocations: 4 kB / 479.4 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003885/0.2841, allocations: 177.6 kB / 479.6 MB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002619/0.2867, allocations: 0.8199 MB / 480.4 MB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.301e-05/0.2868, allocations: 42.66 kB / 480.4 MB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005019/0.2918, allocations: 7.369 MB / 487.8 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.2918, allocations: 3.562 kB / 487.8 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003479/0.2953, allocations: 2.141 MB / 489.9 MB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001688/0.2955, allocations: 127 kB / 490.1 MB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.2956, allocations: 24 kB / 490.1 MB, free: 7.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/0.296, allocations: 31.98 kB / 490.1 MB, free: 7.699 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000215/0.2962, allocations: 123.4 kB / 490.2 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.331e-05/0.2963, allocations: 47.97 kB / 490.3 MB, free: 7.535 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006602/0.2969, allocations: 0.7796 MB / 491.1 MB, free: 6.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2969, allocations: 7.75 kB / 491.1 MB, free: 6.746 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00248/0.2994, allocations: 0.9664 MB / 492 MB, free: 5.777 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (90): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00134/0.3008, allocations: 1.048 MB / 493.1 MB, free: 4.902 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0024/0.3032, allocations: 1.891 MB / 495 MB, free: 3.035 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3032, allocations: 0 / 495 MB, free: 3.035 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.3042, allocations: 1.104 MB / 496.1 MB, free: 1.898 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008472/0.3051, allocations: 272.3 kB / 496.4 MB, free: 1.66 MB / 362.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004136/0.3092, allocations: 2.936 MB / 499.3 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.3094, allocations: 302.7 kB / 499.6 MB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006474/0.3101, allocations: 320.4 kB / 499.9 MB, free: 14.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002606/0.3103, allocations: 181.8 kB / 0.4884 GB, free: 14.04 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.3103, allocations: 0 / 0.4884 GB, free: 14.04 MB / 378.7 MB Notification: Performance of Templates: time 0.0364/0.3467, allocations: 36.35 MB / 0.5239 GB, free: 10.65 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=240 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.019860740052536]