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.001458/0.001458, allocations: 99.64 kB / 18.95 MB, free: 2.676 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.001652/0.001652, allocations: 216.8 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.422/1.422, 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.1373/0.1373, allocations: 23.89 MB / 336.3 MB, free: 10.96 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.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: 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.002203/0.002203, allocations: 67.89 kB / 471.1 MB, free: 7.512 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.301, allocations: 59.85 MB / 0.5185 GB, free: 9.57 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.H2O_ElectrochemicalCell): time 0.07285/0.3738, allocations: 28.26 MB / 0.5461 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02345/0.3973, allocations: 17.14 MB / 0.5629 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001419/0.3987, allocations: 23.81 kB / 0.5629 GB, free: 11.9 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.4001, allocations: 467 kB / 0.5633 GB, free: 11.55 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003746/0.4039, allocations: 1.208 MB / 0.5645 GB, free: 10.53 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007985/0.4119, allocations: 2.887 MB / 0.5673 GB, free: 7.922 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003507/0.4154, allocations: 2.098 MB / 0.5694 GB, free: 5.812 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.417, allocations: 1.049 MB / 0.5704 GB, free: 4.715 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.4183, allocations: 0.931 MB / 0.5713 GB, free: 3.781 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001517/0.4198, allocations: 0.9491 MB / 0.5722 GB, free: 2.828 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003708/0.4202, allocations: 200 kB / 0.5724 GB, free: 2.633 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005268/0.4254, allocations: 1.962 MB / 0.5743 GB, free: 0.668 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006/0.426, allocations: 466.6 kB / 0.5748 GB, free: 216 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00115/0.4272, allocations: 0.8288 MB / 0.5756 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009509/0.4367, allocations: 4.35 MB / 0.5798 GB, free: 11.01 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.869e-06/0.4367, allocations: 4 kB / 0.5798 GB, free: 11.01 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4367, allocations: 0 / 0.5798 GB, free: 11.01 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.538e-05/0.4368, allocations: 0 / 0.5798 GB, free: 11.01 MB / 430.1 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.004932/0.4417, allocations: 2.327 MB / 0.5821 GB, free: 8.637 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.4417, allocations: 8.031 kB / 0.5821 GB, free: 8.629 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003373/0.4421, allocations: 240.8 kB / 0.5824 GB, free: 8.383 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001788/0.4439, allocations: 443 kB / 0.5828 GB, free: 7.949 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002381/0.4462, allocations: 1.015 MB / 0.5838 GB, free: 6.902 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002302/0.4465, allocations: 238.2 kB / 0.584 GB, free: 6.645 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003435/0.4468, allocations: 164 kB / 0.5842 GB, free: 6.484 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004164/0.451, allocations: 2.241 MB / 0.5863 GB, free: 4.176 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.124e-05/0.451, allocations: 4 kB / 0.5863 GB, free: 4.172 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001639/0.4512, allocations: 68 kB / 0.5864 GB, free: 4.105 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.691e-05/0.4512, allocations: 44 kB / 0.5865 GB, free: 4.062 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00458/0.4558, allocations: 2.692 MB / 0.5891 GB, free: 1.363 MB / 430.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.01198/0.4678, allocations: 6.333 MB / 0.5953 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/0.4696, allocations: 0.9755 MB / 0.5962 GB, free: 9.875 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009/0.4705, allocations: 0.5174 MB / 0.5967 GB, free: 9.348 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007535/0.4781, allocations: 2.982 MB / 0.5996 GB, free: 6.344 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.4781, allocations: 43.22 kB / 0.5997 GB, free: 6.293 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004757/0.4786, allocations: 119 kB / 0.5998 GB, free: 6.176 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.725e-06/0.4786, allocations: 4 kB / 0.5998 GB, free: 6.172 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01829/0.4969, allocations: 4.565 MB / 0.6043 GB, free: 1.551 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/0.4969, allocations: 115.8 kB / 0.6044 GB, free: 1.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002099/0.499, allocations: 1.548 MB / 0.6059 GB, free: 15.85 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001557/0.4992, allocations: 41.7 kB / 0.6059 GB, free: 15.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007224/0.4999, allocations: 0.9239 MB / 0.6068 GB, free: 14.86 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003983/0.5003, allocations: 361 kB / 0.6072 GB, free: 14.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005412/0.5009, allocations: 359.3 kB / 0.6075 GB, free: 14.14 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.501, allocations: 305.2 kB / 0.6078 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001103/0.5021, allocations: 0.6325 MB / 0.6084 GB, free: 13.21 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001688/0.5038, allocations: 1.345 MB / 0.6097 GB, free: 11.54 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002818/0.5066, allocations: 1.933 MB / 0.6116 GB, free: 9.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.032e-05/0.5066, allocations: 8 kB / 0.6116 GB, free: 9.262 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005927/0.5125, allocations: 2.383 MB / 0.6139 GB, free: 6.859 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.677e-05/0.5126, allocations: 15.94 kB / 0.614 GB, free: 6.844 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.39e-05/0.5126, allocations: 24 kB / 0.614 GB, free: 6.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002488/0.5151, allocations: 383.1 kB / 0.6144 GB, free: 6.434 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002792/0.5179, allocations: 0.5656 MB / 0.6149 GB, free: 5.867 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00947/0.5274, allocations: 7.446 MB / 0.6222 GB, free: 13.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.5291, allocations: 92.05 kB / 0.6223 GB, free: 13.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002882/0.5294, allocations: 104 kB / 0.6224 GB, free: 13.71 MB / 478.1 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.0009062/0.5303, allocations: 377.1 kB / 0.6227 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004372/0.5307, allocations: 135.1 kB / 0.6228 GB, free: 13.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00477/0.5355, allocations: 1.527 MB / 0.6243 GB, free: 11.65 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.778e-05/0.5355, allocations: 16 kB / 0.6244 GB, free: 11.64 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.5355, allocations: 0 / 0.6244 GB, free: 11.64 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.819e-05/0.5356, allocations: 3.984 kB / 0.6244 GB, free: 11.63 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007496/0.5431, allocations: 2.823 MB / 0.6271 GB, free: 8.66 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/0.5431, allocations: 8 kB / 0.6271 GB, free: 8.652 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009449/0.544, allocations: 211.7 kB / 0.6273 GB, free: 8.445 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002653/0.5467, allocations: 413.3 kB / 0.6277 GB, free: 8.023 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/0.5468, allocations: 43.98 kB / 0.6278 GB, free: 7.98 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008534/0.5554, allocations: 7.26 MB / 0.6349 GB, free: 208 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/0.5554, allocations: 15.88 kB / 0.6349 GB, free: 192 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005233/0.5606, allocations: 2.157 MB / 0.637 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004449/0.561, allocations: 131.2 kB / 0.6371 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/0.5613, allocations: 27.98 kB / 0.6371 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007095/0.562, allocations: 32 kB / 0.6372 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.5622, allocations: 120.2 kB / 0.6373 GB, free: 13.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.915e-05/0.5623, allocations: 47.98 kB / 0.6373 GB, free: 13.55 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001325/0.5636, allocations: 1.033 MB / 0.6383 GB, free: 12.52 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5636, allocations: 0 / 0.6383 GB, free: 12.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002706/0.5663, allocations: 0.8221 MB / 0.6391 GB, free: 11.69 MB / 494.1 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.007176/0.5735, allocations: 3.517 MB / 0.6426 GB, free: 8.035 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003624/0.5771, allocations: 1.698 MB / 0.6442 GB, free: 6.316 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/0.5771, allocations: 4 kB / 0.6442 GB, free: 6.312 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001555/0.5787, allocations: 0.9503 MB / 0.6452 GB, free: 5.312 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/0.5803, allocations: 243.2 kB / 0.6454 GB, free: 5.078 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02464/0.6049, allocations: 13.47 MB / 0.6585 GB, free: 6.578 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008228/0.6057, allocations: 0.6371 MB / 0.6592 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001208/0.6069, allocations: 334.5 kB / 0.6595 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/0.6079, allocations: 0.6632 MB / 0.6601 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of SimCode: time 1.102e-06/0.6079, allocations: 0 / 0.6601 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0975/0.7054, allocations: 42.32 MB / 0.7014 GB, free: 10.88 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.6, allocations: 15.77 kB / 0.7015 GB, free: 10.87 MB / 0.545 GB " [Timeout remaining time 644] (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: 18.239354442805052] Failed to read output from testmodel.py, exit status != 0: 15.742307567968965 15.759576845 15.319273761 Calling exit ...