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.001795/0.001795, 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.002403/0.002403, allocations: 218.1 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.399/1.399, allocations: 230.6 MB / 256 MB, free: 7.977 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.134/0.134, allocations: 23.89 MB / 336.3 MB, free: 11.14 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.001986/0.001986, allocations: 67.89 kB / 471.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3069, allocations: 59.88 MB / 0.5186 GB, free: 9.586 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.03992/0.3468, allocations: 29.09 MB / 0.5471 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0244/0.3712, allocations: 19.53 MB / 0.5661 GB, free: 8.816 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.3727, allocations: 23.81 kB / 0.5662 GB, free: 8.793 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.3743, allocations: 0.5033 MB / 0.5666 GB, free: 8.398 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004011/0.3783, allocations: 1.243 MB / 0.5679 GB, free: 7.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007996/0.3863, allocations: 2.892 MB / 0.5707 GB, free: 4.75 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003593/0.3899, allocations: 2.086 MB / 0.5727 GB, free: 2.652 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.3915, allocations: 1.073 MB / 0.5738 GB, free: 1.531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001276/0.3928, allocations: 0.9348 MB / 0.5747 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001667/0.3944, allocations: 1.074 MB / 0.5757 GB, free: 15.52 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003797/0.3948, allocations: 200 kB / 0.5759 GB, free: 15.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006142/0.401, allocations: 2.079 MB / 0.5779 GB, free: 13.24 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006706/0.4016, allocations: 474.6 kB / 0.5784 GB, free: 12.77 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001282/0.4029, allocations: 0.9878 MB / 0.5794 GB, free: 11.78 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009483/0.4124, allocations: 4.354 MB / 0.5836 GB, free: 7.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4124, allocations: 0 / 0.5836 GB, free: 7.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4124, allocations: 0 / 0.5836 GB, free: 7.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.716e-05/0.4125, allocations: 4 kB / 0.5836 GB, free: 7.406 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.004684/0.4172, allocations: 2.335 MB / 0.5859 GB, free: 5.027 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.4172, allocations: 8.031 kB / 0.5859 GB, free: 5.02 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002927/0.4175, allocations: 236.8 kB / 0.5861 GB, free: 4.777 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.4192, allocations: 450.8 kB / 0.5866 GB, free: 4.336 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002047/0.4212, allocations: 1.019 MB / 0.5876 GB, free: 3.285 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/0.4215, allocations: 246.2 kB / 0.5878 GB, free: 3.02 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003139/0.4218, allocations: 164 kB / 0.588 GB, free: 2.859 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003703/0.4255, allocations: 2.241 MB / 0.5901 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/0.4255, allocations: 0 / 0.5901 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001521/0.4257, allocations: 68 kB / 0.5902 GB, free: 496 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-05/0.4257, allocations: 40 kB / 0.5902 GB, free: 456 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004025/0.4297, allocations: 2.719 MB / 0.5929 GB, free: 13.71 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.01104/0.4408, allocations: 7.231 MB / 0.6 GB, free: 6.215 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.4425, allocations: 0.9751 MB / 0.6009 GB, free: 5.215 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008134/0.4433, allocations: 0.5174 MB / 0.6014 GB, free: 4.684 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006842/0.4501, allocations: 3.153 MB / 0.6045 GB, free: 1.508 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.4502, allocations: 47.16 kB / 0.6045 GB, free: 1.453 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005035/0.4507, allocations: 115 kB / 0.6047 GB, free: 1.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.575e-06/0.4507, allocations: 0 / 0.6047 GB, free: 1.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01865/0.4693, allocations: 4.566 MB / 0.6091 GB, free: 12.71 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.4694, allocations: 111.8 kB / 0.6092 GB, free: 12.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001974/0.4714, allocations: 1.501 MB / 0.6107 GB, free: 11.06 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001303/0.4715, allocations: 41.7 kB / 0.6107 GB, free: 11.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006998/0.4722, allocations: 0.9201 MB / 0.6116 GB, free: 10.08 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003676/0.4726, allocations: 361 kB / 0.612 GB, free: 9.727 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005467/0.4731, allocations: 363.3 kB / 0.6123 GB, free: 9.363 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4732, allocations: 309.1 kB / 0.6126 GB, free: 9.059 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.4743, allocations: 0.6325 MB / 0.6132 GB, free: 8.426 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/0.4759, allocations: 1.337 MB / 0.6145 GB, free: 6.758 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002642/0.4786, allocations: 1.933 MB / 0.6164 GB, free: 4.496 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-05/0.4786, allocations: 8 kB / 0.6164 GB, free: 4.488 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005873/0.4845, allocations: 2.39 MB / 0.6188 GB, free: 2.074 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/0.4845, allocations: 15.94 kB / 0.6188 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.572e-05/0.4845, allocations: 24 kB / 0.6188 GB, free: 2.035 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002602/0.4871, allocations: 383.2 kB / 0.6192 GB, free: 1.648 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00263/0.4898, allocations: 0.5656 MB / 0.6197 GB, free: 1.082 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008935/0.4987, allocations: 7.489 MB / 0.627 GB, free: 9.078 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.5001, allocations: 88.05 kB / 0.6271 GB, free: 8.992 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002911/0.5004, allocations: 107.9 kB / 0.6272 GB, free: 8.887 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.0007936/0.5012, allocations: 369.6 kB / 0.6276 GB, free: 8.516 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003757/0.5016, allocations: 135.1 kB / 0.6277 GB, free: 8.383 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00478/0.5064, allocations: 1.534 MB / 0.6292 GB, free: 6.824 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.5064, allocations: 12 kB / 0.6292 GB, free: 6.812 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.5064, allocations: 0 / 0.6292 GB, free: 6.812 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.5064, allocations: 3.984 kB / 0.6292 GB, free: 6.809 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007487/0.5139, allocations: 2.983 MB / 0.6321 GB, free: 3.676 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.5139, allocations: 4 kB / 0.6321 GB, free: 3.672 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008782/0.5148, allocations: 215.7 kB / 0.6323 GB, free: 3.461 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002719/0.5175, allocations: 408.9 kB / 0.6327 GB, free: 3.043 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001363/0.5177, allocations: 43.98 kB / 0.6328 GB, free: 3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00837/0.526, allocations: 7.299 MB / 0.6399 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.526, allocations: 8 kB / 0.6399 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005275/0.5313, allocations: 2.168 MB / 0.642 GB, free: 8.887 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004253/0.5317, allocations: 123.2 kB / 0.6421 GB, free: 8.766 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003081/0.532, allocations: 36.11 kB / 0.6422 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008331/0.5329, allocations: 28 kB / 0.6422 GB, free: 8.703 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/0.5331, allocations: 116.2 kB / 0.6423 GB, free: 8.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.5332, allocations: 51.98 kB / 0.6424 GB, free: 8.539 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001395/0.5346, allocations: 1.033 MB / 0.6434 GB, free: 7.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5346, allocations: 0 / 0.6434 GB, free: 7.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00286/0.5375, allocations: 0.826 MB / 0.6442 GB, free: 6.672 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.007148/0.5446, allocations: 3.512 MB / 0.6476 GB, free: 3.02 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003618/0.5482, allocations: 1.702 MB / 0.6493 GB, free: 1.297 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/0.5482, allocations: 4 kB / 0.6493 GB, free: 1.293 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001464/0.5497, allocations: 0.9581 MB / 0.6502 GB, free: 292 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/0.5514, allocations: 242.1 kB / 0.6504 GB, free: 56 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02478/0.5762, allocations: 13.46 MB / 0.6636 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.5773, allocations: 1.219 MB / 0.6648 GB, free: 312 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001095/0.5784, allocations: 326.6 kB / 0.6651 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009538/0.5793, allocations: 0.6554 MB / 0.6657 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of SimCode: time 1.032e-06/0.5793, allocations: 4 kB / 0.6657 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09725/0.6766, allocations: 42.33 MB / 0.7071 GB, free: 5.195 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.13/28.81, allocations: 4.062 kB / 0.7071 GB, free: 5.191 MB / 0.545 GB " [Timeout remaining time 631] (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: 31.508086540037766] Failed to read output from testmodel.py, exit status != 0: 28.94832308916375 28.975607582 28.557352967 Calling exit ...