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.0007835/0.0007835, allocations: 76.44 kB / 19.17 MB, free: 0.7383 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.0008198/0.0008198, allocations: 173.2 kB / 22.46 MB, free: 2.098 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.8907/0.8907, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.08825/0.08825, allocations: 17.36 MB / 276.6 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: "" <> 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: 444 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.335e-05/1.509e-05, allocations: 15.7 kB / 411.4 MB, free: 428 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.02422/0.02424, allocations: 28.49 MB / 439.9 MB, free: 3.992 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1772/0.2015, allocations: 17.12 MB / 457.1 MB, free: 55.29 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007598/0.2022, allocations: 28.75 kB / 457.1 MB, free: 55.27 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007492/0.203, allocations: 468.6 kB / 457.5 MB, free: 55.03 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001789/0.2048, allocations: 1.255 MB / 458.8 MB, free: 54.26 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003792/0.2086, allocations: 2.968 MB / 461.8 MB, free: 52.51 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.2097, allocations: 2.168 MB / 463.9 MB, free: 51.4 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006601/0.2104, allocations: 1.069 MB / 465 MB, free: 50.86 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006751/0.2111, allocations: 1.347 MB / 466.4 MB, free: 50.33 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006137/0.2117, allocations: 0.823 MB / 467.2 MB, free: 50.1 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.2118, allocations: 197.2 kB / 467.4 MB, free: 50.1 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00234/0.2142, allocations: 1.979 MB / 469.3 MB, free: 49.65 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.2144, allocations: 481.2 kB / 469.8 MB, free: 49.34 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000344/0.2147, allocations: 0.7019 MB / 470.5 MB, free: 49.04 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002722/0.2174, allocations: 4.568 MB / 475.1 MB, free: 47.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2174, allocations: 0 / 475.1 MB, free: 47.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2174, allocations: 3.125 kB / 475.1 MB, free: 47.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.2175, allocations: 0 / 475.1 MB, free: 47.1 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.001961/0.2194, allocations: 2.31 MB / 477.4 MB, free: 45.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.8e-05/0.2194, allocations: 12 kB / 477.4 MB, free: 45.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000149/0.2196, allocations: 234.2 kB / 477.6 MB, free: 45.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007521/0.2203, allocations: 443 kB / 478.1 MB, free: 45.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009051/0.2212, allocations: 1.012 MB / 479.1 MB, free: 44.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.958e-05/0.2213, allocations: 235.6 kB / 479.3 MB, free: 44.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.2215, allocations: 172.4 kB / 479.5 MB, free: 44.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001802/0.2233, allocations: 2.242 MB / 481.7 MB, free: 43.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.2233, allocations: 6.938 kB / 481.7 MB, free: 43.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.65e-05/0.2234, allocations: 67.03 kB / 481.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.2234, allocations: 39.16 kB / 481.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002212/0.2256, allocations: 2.691 MB / 484.5 MB, free: 42.78 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.005369/0.231, allocations: 6.333 MB / 490.9 MB, free: 39.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009979/0.232, allocations: 0.981 MB / 491.8 MB, free: 38.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005044/0.2325, allocations: 0.5125 MB / 492.4 MB, free: 38.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00369/0.2362, allocations: 2.987 MB / 495.3 MB, free: 37.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.457e-05/0.2362, allocations: 40.88 kB / 495.4 MB, free: 36.97 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002121/0.2364, allocations: 114.3 kB / 495.5 MB, free: 36.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=71): time 1.953e-06/0.2364, allocations: 0 / 495.5 MB, free: 36.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=95): time 0.008944/0.2454, allocations: 4.563 MB / 0.4883 GB, free: 35.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.2454, allocations: 118.3 kB / 0.4884 GB, free: 34.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001235/0.2467, allocations: 1.553 MB / 0.49 GB, free: 34.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.529e-05/0.2467, allocations: 41.02 kB / 0.49 GB, free: 34.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003487/0.247, allocations: 0.919 MB / 0.4909 GB, free: 33.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.2472, allocations: 357.8 kB / 0.4912 GB, free: 33.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003334/0.2476, allocations: 356.3 kB / 0.4916 GB, free: 32.97 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.172e-05/0.2476, allocations: 302.4 kB / 0.4919 GB, free: 32.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006837/0.2483, allocations: 0.6328 MB / 0.4925 GB, free: 32.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008633/0.2491, allocations: 1.341 MB / 0.4938 GB, free: 31.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/0.2507, allocations: 1.933 MB / 0.4957 GB, free: 29.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/0.2507, allocations: 6.875 kB / 0.4957 GB, free: 29.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.002949/0.2536, allocations: 2.388 MB / 0.498 GB, free: 28.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.2536, allocations: 14.94 kB / 0.498 GB, free: 28.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.2537, allocations: 27.58 kB / 0.4981 GB, free: 28.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.2548, allocations: 377 kB / 0.4984 GB, free: 28.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.2561, allocations: 0.5638 MB / 0.499 GB, free: 28.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003755/0.2599, allocations: 7.452 MB / 0.5063 GB, free: 21.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007641/0.2607, allocations: 84.16 kB / 0.5063 GB, free: 21.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.2608, allocations: 106 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.0004325/0.2612, allocations: 371 kB / 0.5068 GB, free: 21.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.2613, allocations: 132 kB / 0.5069 GB, free: 21.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002277/0.2636, allocations: 1.532 MB / 0.5084 GB, free: 19.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.2636, allocations: 14.81 kB / 0.5084 GB, free: 19.94 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2636, allocations: 0.75 kB / 0.5084 GB, free: 19.94 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.2636, allocations: 9.094 kB / 0.5084 GB, free: 19.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003327/0.2669, allocations: 2.833 MB / 0.5112 GB, free: 17.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.267, allocations: 8 kB / 0.5112 GB, free: 17.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003981/0.2674, allocations: 213.4 kB / 0.5114 GB, free: 17.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.2685, allocations: 405.2 kB / 0.5118 GB, free: 16.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.022e-05/0.2685, allocations: 43.84 kB / 0.5118 GB, free: 16.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003095/0.2716, allocations: 7.251 MB / 0.5189 GB, free: 9.359 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.2716, allocations: 15.88 kB / 0.5189 GB, free: 9.344 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002256/0.2739, allocations: 2.145 MB / 0.521 GB, free: 7.145 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.274, allocations: 135.1 kB / 0.5212 GB, free: 7.012 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.2741, allocations: 31.98 kB / 0.5212 GB, free: 6.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003443/0.2745, allocations: 28 kB / 0.5212 GB, free: 6.953 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.2746, allocations: 118.9 kB / 0.5213 GB, free: 6.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.788e-05/0.2747, allocations: 47.98 kB / 0.5214 GB, free: 6.793 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006992/0.2754, allocations: 1.033 MB / 0.5224 GB, free: 5.754 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2754, allocations: 0 / 0.5224 GB, free: 5.754 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001956/0.2773, allocations: 0.8221 MB / 0.5232 GB, free: 4.93 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.003269/0.2806, allocations: 3.522 MB / 0.5266 GB, free: 1.332 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.2825, allocations: 1.703 MB / 0.5283 GB, free: 15.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.2825, allocations: 6.688 kB / 0.5283 GB, free: 15.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007693/0.2833, allocations: 0.9523 MB / 0.5292 GB, free: 14.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008177/0.2841, allocations: 233.5 kB / 0.5294 GB, free: 14.42 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01342/0.2975, allocations: 13.32 MB / 0.5425 GB, free: 148 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004631/0.298, allocations: 0.6384 MB / 0.5431 GB, free: 15.49 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006483/0.2986, allocations: 326 kB / 0.5434 GB, free: 15.26 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005662/0.2992, allocations: 0.6635 MB / 0.544 GB, free: 14.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/0.2992, allocations: 3.938 kB / 0.544 GB, free: 14.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05061/0.3498, allocations: 42.48 MB / 0.5855 GB, free: 4.863 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.076/9.425, allocations: 9.562 kB / 0.5855 GB, free: 4.859 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.386695137247443] Failed to read output from testmodel.py, exit status != 0: 9.536037493497133 9.544579009 9.324949823 Calling exit ...