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.0007859/0.0007859, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.000796/0.000796, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.8707/0.8707, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.0878/0.0878, allocations: 17.37 MB / 276.6 MB, free: 11.84 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 411.4 MB, free: 428 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.014e-05/2.188e-05, allocations: 6.219 kB / 411.4 MB, free: 420 kB / 378.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.H2O_ElectrochemicalCell): time 0.02718/0.0272, allocations: 28.5 MB / 439.9 MB, free: 3.973 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1773/0.2045, allocations: 17.12 MB / 457.1 MB, free: 55.3 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009368/0.2055, allocations: 28.84 kB / 457.1 MB, free: 55.29 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008782/0.2063, allocations: 470.1 kB / 457.5 MB, free: 55.04 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002127/0.2085, allocations: 1.249 MB / 458.8 MB, free: 54.28 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004734/0.2132, allocations: 2.973 MB / 461.8 MB, free: 52.53 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001619/0.2148, allocations: 2.17 MB / 463.9 MB, free: 51.41 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008457/0.2157, allocations: 1.065 MB / 465 MB, free: 50.88 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008851/0.2166, allocations: 1.34 MB / 466.3 MB, free: 50.35 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007442/0.2173, allocations: 0.8366 MB / 467.2 MB, free: 50.11 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001808/0.2175, allocations: 201.6 kB / 467.4 MB, free: 50.11 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003747/0.2212, allocations: 1.971 MB / 469.3 MB, free: 49.67 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002596/0.2215, allocations: 476.3 kB / 469.8 MB, free: 49.36 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005661/0.2221, allocations: 0.7117 MB / 470.5 MB, free: 49.05 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008245/0.2303, allocations: 4.559 MB / 475.1 MB, free: 47.12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.2303, allocations: 2.688 kB / 475.1 MB, free: 47.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2303, allocations: 0 / 475.1 MB, free: 47.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.469e-05/0.2303, allocations: 0 / 475.1 MB, free: 47.12 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.003033/0.2334, allocations: 2.31 MB / 477.4 MB, free: 45.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2334, allocations: 9.156 kB / 477.4 MB, free: 45.74 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001657/0.2336, allocations: 243.3 kB / 477.6 MB, free: 45.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009396/0.2345, allocations: 446.2 kB / 478.1 MB, free: 45.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.2356, allocations: 1.01 MB / 479.1 MB, free: 44.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.2357, allocations: 231 kB / 479.3 MB, free: 44.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.2359, allocations: 172.5 kB / 479.5 MB, free: 44.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.2379, allocations: 2.251 MB / 481.7 MB, free: 43.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.891e-05/0.2379, allocations: 10.16 kB / 481.7 MB, free: 43.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.238, allocations: 71.03 kB / 481.8 MB, free: 43.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.238, allocations: 39.59 kB / 481.9 MB, free: 43.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002515/0.2406, allocations: 2.687 MB / 484.5 MB, free: 42.79 MB / 410.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.006789/0.2473, allocations: 6.327 MB / 490.9 MB, free: 39.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.2485, allocations: 0.9761 MB / 491.8 MB, free: 38.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005507/0.249, allocations: 0.5147 MB / 492.4 MB, free: 38.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004653/0.2537, allocations: 2.98 MB / 495.3 MB, free: 37.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.2537, allocations: 39.72 kB / 495.4 MB, free: 36.99 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003756/0.2541, allocations: 118.4 kB / 495.5 MB, free: 36.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=71): time 2.544e-06/0.2541, allocations: 0 / 495.5 MB, free: 36.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=95): time 0.009933/0.264, allocations: 4.573 MB / 0.4883 GB, free: 35.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.2641, allocations: 114.1 kB / 0.4885 GB, free: 34.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/0.2655, allocations: 1.554 MB / 0.49 GB, free: 34.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.316e-05/0.2655, allocations: 41.3 kB / 0.49 GB, free: 34.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003541/0.2659, allocations: 0.9136 MB / 0.4909 GB, free: 33.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.2661, allocations: 359.6 kB / 0.4912 GB, free: 33.15 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003504/0.2664, allocations: 351 kB / 0.4916 GB, free: 32.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.83e-05/0.2665, allocations: 302.9 kB / 0.4919 GB, free: 32.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007331/0.2672, allocations: 0.6333 MB / 0.4925 GB, free: 32.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009321/0.2681, allocations: 1.346 MB / 0.4938 GB, free: 31.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.2698, allocations: 1.935 MB / 0.4957 GB, free: 29.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.787e-05/0.2699, allocations: 6.875 kB / 0.4957 GB, free: 29.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003691/0.2736, allocations: 2.389 MB / 0.498 GB, free: 28.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.08e-05/0.2736, allocations: 15 kB / 0.498 GB, free: 28.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.779e-05/0.2736, allocations: 24.62 kB / 0.4981 GB, free: 28.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/0.275, allocations: 375.8 kB / 0.4984 GB, free: 28.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/0.2765, allocations: 0.5606 MB / 0.499 GB, free: 28.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004606/0.2811, allocations: 7.455 MB / 0.5063 GB, free: 21.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.2823, allocations: 87.06 kB / 0.5063 GB, free: 21.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.2824, allocations: 107.8 kB / 0.5064 GB, free: 21.71 MB / 410.7 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.0005578/0.283, allocations: 371.2 kB / 0.5068 GB, free: 21.35 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.2831, allocations: 135.8 kB / 0.5069 GB, free: 21.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002358/0.2855, allocations: 1.52 MB / 0.5084 GB, free: 19.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.2855, allocations: 11.84 kB / 0.5084 GB, free: 19.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2855, allocations: 4 kB / 0.5084 GB, free: 19.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.2855, allocations: 6.797 kB / 0.5084 GB, free: 19.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00356/0.2891, allocations: 2.831 MB / 0.5112 GB, free: 17.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.2891, allocations: 6.562 kB / 0.5112 GB, free: 17.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004326/0.2895, allocations: 219 kB / 0.5114 GB, free: 17.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/0.2907, allocations: 411.8 kB / 0.5118 GB, free: 16.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.712e-05/0.2908, allocations: 43.94 kB / 0.5118 GB, free: 16.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.2942, allocations: 7.242 MB / 0.5189 GB, free: 9.363 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.2942, allocations: 11.94 kB / 0.5189 GB, free: 9.352 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.2968, allocations: 2.158 MB / 0.521 GB, free: 7.117 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002483/0.297, allocations: 131.1 kB / 0.5212 GB, free: 6.988 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.948e-05/0.2971, allocations: 28 kB / 0.5212 GB, free: 6.961 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003673/0.2975, allocations: 24 kB / 0.5212 GB, free: 6.938 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.2976, allocations: 120.2 kB / 0.5213 GB, free: 6.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.803e-05/0.2977, allocations: 51.98 kB / 0.5214 GB, free: 6.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006675/0.2983, allocations: 1.031 MB / 0.5224 GB, free: 5.734 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2983, allocations: 0 / 0.5224 GB, free: 5.734 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00204/0.3004, allocations: 0.826 MB / 0.5232 GB, free: 4.906 MB / 410.7 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.003492/0.3039, allocations: 3.524 MB / 0.5266 GB, free: 1.305 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.306, allocations: 1.705 MB / 0.5283 GB, free: 15.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.306, allocations: 0 / 0.5283 GB, free: 15.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008445/0.3069, allocations: 0.951 MB / 0.5292 GB, free: 14.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.3079, allocations: 233.8 kB / 0.5294 GB, free: 14.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/0.3239, allocations: 13.32 MB / 0.5425 GB, free: 128 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005184/0.3244, allocations: 0.6422 MB / 0.5431 GB, free: 15.47 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008013/0.3253, allocations: 319.5 kB / 0.5434 GB, free: 15.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006272/0.3259, allocations: 0.6667 MB / 0.544 GB, free: 14.58 MB / 442.7 MB Notification: Performance of SimCode: time 1.714e-06/0.3259, allocations: 0 / 0.544 GB, free: 14.58 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05806/0.3839, allocations: 42.5 MB / 0.5855 GB, free: 4.832 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.311/9.695, allocations: 3.281 kB / 0.5855 GB, free: 4.832 MB / 474.7 MB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.503447479568422] Failed to read output from testmodel.py, exit status != 0: 9.804129010997713 9.813523678 9.581360307 Calling exit ...