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.001749/0.001749, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002361/0.002361, allocations: 217.2 kB / 22.26 MB, free: 5.125 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.481/1.481, allocations: 230.6 MB / 256 MB, free: 7.961 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.1539/0.1539, allocations: 23.86 MB / 336.3 MB, free: 11.18 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.002033/0.002033, allocations: 71.89 kB / 471.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3161, allocations: 59.86 MB / 0.5186 GB, free: 9.586 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.04325/0.3593, allocations: 31.08 MB / 0.5489 GB, free: 9.059 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04164/0.401, allocations: 28.9 MB / 0.5771 GB, free: 14.14 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002567/0.4035, allocations: 31.75 kB / 0.5772 GB, free: 14.11 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002619/0.4062, allocations: 0.6591 MB / 0.5778 GB, free: 13.45 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008358/0.4145, allocations: 2.22 MB / 0.58 GB, free: 11.21 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01175/0.4263, allocations: 3.922 MB / 0.5838 GB, free: 7.266 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004963/0.4312, allocations: 2.863 MB / 0.5866 GB, free: 4.391 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.4333, allocations: 1.369 MB / 0.588 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001858/0.4352, allocations: 1.336 MB / 0.5893 GB, free: 1.633 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002295/0.4375, allocations: 1.51 MB / 0.5907 GB, free: 120 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004488/0.4379, allocations: 260 kB / 0.591 GB, free: 15.86 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009071/0.447, allocations: 3.151 MB / 0.5941 GB, free: 12.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001069/0.448, allocations: 0.5998 MB / 0.5946 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002104/0.4501, allocations: 1.307 MB / 0.5959 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.018/0.4681, allocations: 6.198 MB / 0.602 GB, free: 4.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.4682, allocations: 0 / 0.602 GB, free: 4.57 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4682, allocations: 4 kB / 0.602 GB, free: 4.566 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001663/0.4683, allocations: 0 / 0.602 GB, free: 4.566 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.007806/0.4761, allocations: 3.088 MB / 0.605 GB, free: 1.426 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.4762, allocations: 8.031 kB / 0.605 GB, free: 1.418 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004239/0.4766, allocations: 304.3 kB / 0.6053 GB, free: 1.109 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002415/0.479, allocations: 0.5609 MB / 0.6058 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002819/0.4818, allocations: 1.247 MB / 0.6071 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002852/0.4821, allocations: 279.3 kB / 0.6073 GB, free: 14.96 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000461/0.4826, allocations: 223.8 kB / 0.6075 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004972/0.4875, allocations: 2.675 MB / 0.6101 GB, free: 11.97 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.004e-05/0.4876, allocations: 7.938 kB / 0.6102 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002104/0.4878, allocations: 88 kB / 0.6102 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.145e-05/0.4879, allocations: 56 kB / 0.6103 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005738/0.4936, allocations: 3.322 MB / 0.6135 GB, free: 8.5 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.01581/0.5094, allocations: 8.591 MB / 0.6219 GB, free: 15.57 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002717/0.5121, allocations: 1.535 MB / 0.6234 GB, free: 14.03 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.5136, allocations: 0.8586 MB / 0.6243 GB, free: 13.16 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01078/0.5244, allocations: 4.542 MB / 0.6287 GB, free: 8.59 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/0.5244, allocations: 43.88 kB / 0.6287 GB, free: 8.539 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.467e-06/0.5244, allocations: 0 / 0.6287 GB, free: 8.539 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.0338/0.5582, allocations: 8.115 MB / 0.6367 GB, free: 376 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.5583, allocations: 99.11 kB / 0.6368 GB, free: 256 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002261/0.5606, allocations: 1.366 MB / 0.6381 GB, free: 14.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002511/0.5608, allocations: 61.64 kB / 0.6382 GB, free: 14.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000834/0.5617, allocations: 1.077 MB / 0.6392 GB, free: 13.71 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006898/0.5623, allocations: 0.6585 MB / 0.6398 GB, free: 13.05 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000746/0.5631, allocations: 481.1 kB / 0.6403 GB, free: 12.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.5632, allocations: 305.2 kB / 0.6406 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001467/0.5647, allocations: 0.821 MB / 0.6414 GB, free: 11.45 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002199/0.5669, allocations: 1.661 MB / 0.643 GB, free: 9.398 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003851/0.5708, allocations: 2.61 MB / 0.6456 GB, free: 6.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.55e-05/0.5708, allocations: 8 kB / 0.6456 GB, free: 6.402 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007128/0.5779, allocations: 3.062 MB / 0.6486 GB, free: 3.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.417e-05/0.5779, allocations: 20 kB / 0.6486 GB, free: 3.301 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-05/0.578, allocations: 28 kB / 0.6486 GB, free: 3.273 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003222/0.5812, allocations: 0.5105 MB / 0.6491 GB, free: 2.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003708/0.5849, allocations: 0.8036 MB / 0.6499 GB, free: 1.945 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009402/0.5943, allocations: 7.631 MB / 0.6573 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/0.5963, allocations: 95.91 kB / 0.6574 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002926/0.5966, allocations: 147.9 kB / 0.6576 GB, free: 9.566 MB / 0.4981 GB 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.0009755/0.5976, allocations: 453.5 kB / 0.658 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003907/0.598, allocations: 171 kB / 0.6582 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00683/0.6048, allocations: 2.582 MB / 0.6607 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-05/0.6048, allocations: 20 kB / 0.6607 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.6048, allocations: 0 / 0.6607 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.403e-05/0.6048, allocations: 11.95 kB / 0.6607 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.6152, allocations: 4.734 MB / 0.6654 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/0.6152, allocations: 8 kB / 0.6654 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/0.617, allocations: 423.4 kB / 0.6658 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003456/0.6204, allocations: 0.5397 MB / 0.6663 GB, free: 364 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002292/0.6206, allocations: 79.97 kB / 0.6664 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008824/0.6295, allocations: 7.435 MB / 0.6736 GB, free: 8.324 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-05/0.6295, allocations: 19.88 kB / 0.6736 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007719/0.6372, allocations: 3.466 MB / 0.677 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007228/0.6379, allocations: 174.8 kB / 0.6772 GB, free: 4.488 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002521/0.6382, allocations: 59.98 kB / 0.6773 GB, free: 4.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.6392, allocations: 44 kB / 0.6773 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003401/0.6395, allocations: 200.6 kB / 0.6775 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/0.6397, allocations: 95.97 kB / 0.6776 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001314/0.641, allocations: 0.9006 MB / 0.6785 GB, free: 3.191 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.641, allocations: 4 kB / 0.6785 GB, free: 3.188 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004224/0.6452, allocations: 1.212 MB / 0.6796 GB, free: 1.973 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.01099/0.6562, allocations: 5.236 MB / 0.6848 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005652/0.6619, allocations: 2.364 MB / 0.6871 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/0.6619, allocations: 2 kB / 0.6871 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002418/0.6643, allocations: 1.36 MB / 0.6884 GB, free: 8.738 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.6663, allocations: 355.1 kB / 0.6887 GB, free: 8.402 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03264/0.699, allocations: 17.01 MB / 0.7054 GB, free: 6.023 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/0.7004, allocations: 1.433 MB / 0.7068 GB, free: 4.555 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001963/0.7024, allocations: 454.4 kB / 0.7072 GB, free: 4.105 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/0.704, allocations: 0.9717 MB / 0.7081 GB, free: 3.133 MB / 0.545 GB Notification: Performance of SimCode: time 1.603e-06/0.704, allocations: 0 / 0.7081 GB, free: 3.133 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4124/1.116, allocations: 60.69 MB / 0.7674 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.02/21.13, allocations: 12.14 kB / 0.7674 GB, free: 156.8 MB / 0.5606 GB " [Timeout remaining time 639] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 24.07142826798372] Failed to read output from testmodel.py, exit status != 0: 21.292921458836645 21.314451009 20.842004007 Calling exit ...