Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.00126/0.00126, allocations: 111 kB / 16.46 MB, free: 6.453 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.001314/0.001314, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.369/1.369, allocations: 230.6 MB / 252.8 MB, free: 8.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1304/0.1304, allocations: 23.87 MB / 332.7 MB, free: 12.35 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_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.002097/0.002097, allocations: 67.88 kB / 466 MB, free: 10.07 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2929, allocations: 59.84 MB / 0.5135 GB, free: 8.805 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.03659/0.3295, allocations: 29.05 MB / 0.5419 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0246/0.3541, allocations: 19.49 MB / 0.5609 GB, free: 9.805 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00152/0.3556, allocations: 31.75 kB / 0.561 GB, free: 9.773 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001413/0.357, allocations: 0.4951 MB / 0.5615 GB, free: 9.387 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003562/0.3606, allocations: 1.235 MB / 0.5627 GB, free: 8.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007717/0.3683, allocations: 2.857 MB / 0.5655 GB, free: 5.988 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002956/0.3713, allocations: 2.094 MB / 0.5675 GB, free: 3.988 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.3726, allocations: 1.096 MB / 0.5686 GB, free: 2.844 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009611/0.3735, allocations: 0.9349 MB / 0.5695 GB, free: 1.906 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001263/0.3748, allocations: 1.07 MB / 0.5705 GB, free: 0.832 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002549/0.3751, allocations: 200 kB / 0.5707 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005856/0.3809, allocations: 2.079 MB / 0.5727 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004417/0.3814, allocations: 478.6 kB / 0.5732 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009187/0.3823, allocations: 0.98 MB / 0.5742 GB, free: 13.1 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007532/0.3898, allocations: 4.358 MB / 0.5784 GB, free: 8.727 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.3898, allocations: 4 kB / 0.5784 GB, free: 8.723 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3898, allocations: 0 / 0.5784 GB, free: 8.723 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.794e-05/0.3898, allocations: 4 kB / 0.5784 GB, free: 8.719 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.004214/0.3941, allocations: 2.407 MB / 0.5808 GB, free: 6.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.3941, allocations: 12.03 kB / 0.5808 GB, free: 6.238 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002857/0.3944, allocations: 236.8 kB / 0.581 GB, free: 5.996 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001625/0.396, allocations: 446.8 kB / 0.5814 GB, free: 5.559 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001709/0.3977, allocations: 1.084 MB / 0.5825 GB, free: 4.43 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.3979, allocations: 194.8 kB / 0.5827 GB, free: 4.227 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002578/0.3981, allocations: 164 kB / 0.5828 GB, free: 4.066 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00335/0.4015, allocations: 2.218 MB / 0.585 GB, free: 1.781 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.4015, allocations: 0 / 0.585 GB, free: 1.781 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001624/0.4017, allocations: 68 kB / 0.5851 GB, free: 1.715 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.704e-05/0.4017, allocations: 40 kB / 0.5851 GB, free: 1.676 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003978/0.4057, allocations: 2.68 MB / 0.5877 GB, free: 14.99 MB / 446.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.01041/0.4161, allocations: 7.279 MB / 0.5948 GB, free: 7.438 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001779/0.4179, allocations: 1.13 MB / 0.5959 GB, free: 6.242 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008396/0.4187, allocations: 0.5105 MB / 0.5964 GB, free: 5.719 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007518/0.4262, allocations: 5.152 MB / 0.6015 GB, free: 48 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.831e-05/0.4263, allocations: 47.11 kB / 0.6015 GB, free: 15.99 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004286/0.4267, allocations: 115 kB / 0.6016 GB, free: 15.88 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.394e-06/0.4267, allocations: 0 / 0.6016 GB, free: 15.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=95): time 0.01778/0.4445, allocations: 4.872 MB / 0.6064 GB, free: 10.87 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.649e-05/0.4446, allocations: 111.8 kB / 0.6065 GB, free: 10.74 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/0.4464, allocations: 1.474 MB / 0.6079 GB, free: 9.25 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.257e-05/0.4464, allocations: 41.7 kB / 0.608 GB, free: 9.203 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006496/0.4471, allocations: 0.92 MB / 0.6089 GB, free: 8.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.4474, allocations: 365 kB / 0.6092 GB, free: 7.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00052/0.4479, allocations: 363.3 kB / 0.6096 GB, free: 7.547 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.448, allocations: 309.2 kB / 0.6099 GB, free: 7.242 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009998/0.449, allocations: 0.6207 MB / 0.6105 GB, free: 6.621 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.4506, allocations: 1.325 MB / 0.6118 GB, free: 4.965 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002523/0.4531, allocations: 1.913 MB / 0.6136 GB, free: 2.719 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.261e-05/0.4532, allocations: 8 kB / 0.6136 GB, free: 2.711 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005481/0.4586, allocations: 2.371 MB / 0.6159 GB, free: 328 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/0.4587, allocations: 19.94 kB / 0.616 GB, free: 308 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-05/0.4587, allocations: 20 kB / 0.616 GB, free: 288 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002495/0.4612, allocations: 387.3 kB / 0.6163 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002598/0.4638, allocations: 0.5617 MB / 0.6169 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008964/0.4727, allocations: 7.904 MB / 0.6246 GB, free: 6.812 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.474, allocations: 84.05 kB / 0.6247 GB, free: 6.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001851/0.4742, allocations: 108 kB / 0.6248 GB, free: 6.625 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.0006435/0.4749, allocations: 375.9 kB / 0.6252 GB, free: 6.25 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002801/0.4751, allocations: 131.1 kB / 0.6253 GB, free: 6.121 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004566/0.4797, allocations: 1.534 MB / 0.6268 GB, free: 4.555 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.4797, allocations: 12 kB / 0.6268 GB, free: 4.543 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.4797, allocations: 0 / 0.6268 GB, free: 4.543 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.4797, allocations: 7.984 kB / 0.6268 GB, free: 4.535 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006542/0.4863, allocations: 3.007 MB / 0.6297 GB, free: 1.371 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.4863, allocations: 11.98 kB / 0.6297 GB, free: 1.359 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008388/0.4871, allocations: 215.7 kB / 0.63 GB, free: 1.148 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002587/0.4897, allocations: 404.8 kB / 0.6303 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.324e-05/0.4898, allocations: 43.98 kB / 0.6304 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008174/0.498, allocations: 7.715 MB / 0.6379 GB, free: 8.352 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.417e-06/0.498, allocations: 11.94 kB / 0.6379 GB, free: 8.34 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004908/0.5029, allocations: 2.157 MB / 0.64 GB, free: 6.066 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003321/0.5032, allocations: 216.2 kB / 0.6402 GB, free: 5.836 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/0.5034, allocations: 24 kB / 0.6403 GB, free: 5.812 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006603/0.504, allocations: 28 kB / 0.6403 GB, free: 5.785 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.5042, allocations: 112.3 kB / 0.6404 GB, free: 5.672 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.506e-05/0.5043, allocations: 51.98 kB / 0.6404 GB, free: 5.621 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001247/0.5056, allocations: 1.017 MB / 0.6414 GB, free: 4.598 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5056, allocations: 0 / 0.6414 GB, free: 4.598 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002634/0.5082, allocations: 0.8299 MB / 0.6423 GB, free: 3.766 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.006594/0.5148, allocations: 3.509 MB / 0.6457 GB, free: 128 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003327/0.5181, allocations: 1.686 MB / 0.6473 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5181, allocations: 4 kB / 0.6473 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00139/0.5195, allocations: 0.9656 MB / 0.6483 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.5209, allocations: 240.1 kB / 0.6485 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02178/0.5427, allocations: 13.4 MB / 0.6616 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000934/0.5436, allocations: 1.223 MB / 0.6628 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0009871/0.5446, allocations: 322.5 kB / 0.6631 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008848/0.5455, allocations: 0.6632 MB / 0.6637 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of SimCode: time 1.102e-06/0.5455, allocations: 0 / 0.6637 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0907/0.6362, allocations: 40.93 MB / 0.7037 GB, free: 3.754 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.6/26.23, allocations: 11.03 kB / 0.7037 GB, free: 3.746 MB / 0.545 GB " [Timeout remaining time 634] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 28.810830999165773] Failed to read output from testmodel.py, exit status != 0: 26.35329361190088 26.378706163 25.983951515 Calling exit ...