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.001374/0.001374, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001595/0.001595, allocations: 213.6 kB / 22.25 MB, free: 5.258 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.453/1.453, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.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.1387/0.1387, allocations: 23.88 MB / 336.3 MB, free: 10.95 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 67.89 kB / 471.1 MB, free: 7.496 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3154, allocations: 59.86 MB / 0.5185 GB, free: 9.551 MB / 382.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.07513/0.3905, allocations: 29.94 MB / 0.5478 GB, free: 9.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03617/0.4267, allocations: 25.31 MB / 0.5725 GB, free: 2.637 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001901/0.4286, allocations: 35.75 kB / 0.5725 GB, free: 2.602 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002098/0.4307, allocations: 0.5891 MB / 0.5731 GB, free: 2.008 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007318/0.438, allocations: 2.173 MB / 0.5752 GB, free: 15.82 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01219/0.4502, allocations: 3.922 MB / 0.579 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00514/0.4553, allocations: 2.848 MB / 0.5818 GB, free: 9.016 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002328/0.4576, allocations: 1.345 MB / 0.5831 GB, free: 7.621 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002156/0.4598, allocations: 1.34 MB / 0.5844 GB, free: 6.277 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002405/0.4622, allocations: 1.338 MB / 0.5857 GB, free: 4.934 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006963/0.4629, allocations: 264 kB / 0.586 GB, free: 4.676 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008691/0.4716, allocations: 2.956 MB / 0.5889 GB, free: 1.715 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001034/0.4726, allocations: 0.6075 MB / 0.5895 GB, free: 1.105 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00188/0.4745, allocations: 1.093 MB / 0.5905 GB, free: 8 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01304/0.4875, allocations: 6.186 MB / 0.5966 GB, free: 9.797 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4875, allocations: 3.938 kB / 0.5966 GB, free: 9.793 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4875, allocations: 0 / 0.5966 GB, free: 9.793 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000105/0.4876, allocations: 0 / 0.5966 GB, free: 9.793 MB / 446.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.00708/0.4947, allocations: 3.084 MB / 0.5996 GB, free: 6.656 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.4948, allocations: 12.03 kB / 0.5996 GB, free: 6.645 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005028/0.4953, allocations: 304.3 kB / 0.5999 GB, free: 6.336 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002435/0.4977, allocations: 0.5531 MB / 0.6004 GB, free: 5.781 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002781/0.5005, allocations: 1.25 MB / 0.6017 GB, free: 4.492 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003065/0.5008, allocations: 283.2 kB / 0.6019 GB, free: 4.188 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000458/0.5013, allocations: 220 kB / 0.6021 GB, free: 3.973 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005133/0.5064, allocations: 2.683 MB / 0.6048 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.573e-05/0.5064, allocations: 3.984 kB / 0.6048 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002383/0.5067, allocations: 88 kB / 0.6049 GB, free: 1.109 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.08e-05/0.5067, allocations: 56 kB / 0.6049 GB, free: 1.055 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00598/0.5127, allocations: 3.287 MB / 0.6081 GB, free: 13.76 MB / 462.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.01568/0.5284, allocations: 7.252 MB / 0.6152 GB, free: 6.359 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002799/0.5312, allocations: 1.527 MB / 0.6167 GB, free: 4.828 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/0.5328, allocations: 0.8546 MB / 0.6175 GB, free: 3.961 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.012/0.5448, allocations: 4.297 MB / 0.6217 GB, free: 15.64 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.525e-05/0.5448, allocations: 51.88 kB / 0.6218 GB, free: 15.58 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 4.158e-06/0.5448, allocations: 0 / 0.6218 GB, free: 15.58 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03218/0.577, allocations: 8.111 MB / 0.6297 GB, free: 7.414 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.581e-05/0.5771, allocations: 99.11 kB / 0.6298 GB, free: 7.297 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001929/0.579, allocations: 1.416 MB / 0.6312 GB, free: 5.863 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001744/0.5792, allocations: 57.7 kB / 0.6312 GB, free: 5.801 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008579/0.58, allocations: 1.077 MB / 0.6323 GB, free: 4.711 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006414/0.5807, allocations: 0.6586 MB / 0.6329 GB, free: 4.047 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007385/0.5814, allocations: 489 kB / 0.6334 GB, free: 3.562 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.5816, allocations: 301.1 kB / 0.6337 GB, free: 3.266 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001524/0.5831, allocations: 0.8171 MB / 0.6345 GB, free: 2.445 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00234/0.5854, allocations: 1.661 MB / 0.6361 GB, free: 408 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004075/0.5895, allocations: 2.614 MB / 0.6386 GB, free: 13.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.04e-05/0.5895, allocations: 8 kB / 0.6387 GB, free: 13.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007501/0.597, allocations: 3.058 MB / 0.6416 GB, free: 10.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.5971, allocations: 16 kB / 0.6417 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-05/0.5971, allocations: 28 kB / 0.6417 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003258/0.6004, allocations: 0.5146 MB / 0.6422 GB, free: 9.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003925/0.6043, allocations: 0.7997 MB / 0.643 GB, free: 8.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.6143, allocations: 7.6 MB / 0.6504 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/0.6162, allocations: 91.91 kB / 0.6505 GB, free: 0.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004629/0.6167, allocations: 151.9 kB / 0.6506 GB, free: 0.6016 MB / 494.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.001221/0.6179, allocations: 461 kB / 0.6511 GB, free: 144 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005767/0.6185, allocations: 174.9 kB / 0.6512 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007444/0.6259, allocations: 2.57 MB / 0.6537 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.978e-05/0.626, allocations: 16 kB / 0.6538 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.626, allocations: 8 kB / 0.6538 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.626, allocations: 7.969 kB / 0.6538 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/0.6369, allocations: 4.458 MB / 0.6581 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.427e-05/0.6369, allocations: 12 kB / 0.6581 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/0.6386, allocations: 419.4 kB / 0.6585 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003334/0.642, allocations: 0.5515 MB / 0.6591 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002803/0.6422, allocations: 75.97 kB / 0.6591 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008917/0.6512, allocations: 7.388 MB / 0.6664 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.524e-05/0.6512, allocations: 15.94 kB / 0.6664 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007571/0.6587, allocations: 3.47 MB / 0.6698 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000544/0.6593, allocations: 175 kB / 0.6699 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003176/0.6596, allocations: 55.98 kB / 0.67 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.6607, allocations: 48 kB / 0.67 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003368/0.661, allocations: 208.6 kB / 0.6702 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001662/0.6612, allocations: 91.97 kB / 0.6703 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001277/0.6625, allocations: 0.9045 MB / 0.6712 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6625, allocations: 3.938 kB / 0.6712 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004048/0.6665, allocations: 1.212 MB / 0.6724 GB, free: 9.316 MB / 0.5137 GB 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.01066/0.6772, allocations: 5.239 MB / 0.6775 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00521/0.6824, allocations: 2.362 MB / 0.6798 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/0.6824, allocations: 0 / 0.6798 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00229/0.6847, allocations: 1.371 MB / 0.6811 GB, free: 76 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001992/0.6867, allocations: 341.8 kB / 0.6815 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03217/0.7188, allocations: 17.01 MB / 0.6981 GB, free: 13.38 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.7199, allocations: 0.8656 MB / 0.6989 GB, free: 12.47 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001719/0.7216, allocations: 466.3 kB / 0.6994 GB, free: 12.01 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/0.7231, allocations: 0.9639 MB / 0.7003 GB, free: 11.04 MB / 0.545 GB Notification: Performance of SimCode: time 1.332e-06/0.7231, allocations: 0 / 0.7003 GB, free: 11.04 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3274/1.05, allocations: 60.21 MB / 0.7591 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.94/16.99, allocations: 3 kB / 0.7591 GB, free: 166.9 MB / 0.5606 GB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.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_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.83601275086403] Failed to read output from testmodel.py, exit status != 0: 17.1549653718248 17.165447779 16.67543113 Calling exit ...