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.001693/0.001693, allocations: 118.7 kB / 17.16 MB, free: 5.914 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.002062/0.002062, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.503/1.503, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1389/0.1389, allocations: 23.88 MB / 333.4 MB, free: 1.188 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="cs",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.001967/0.001967, allocations: 68.5 kB / 466.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09658, allocations: 59.83 MB / 0.5142 GB, free: 12.93 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.04147/0.138, allocations: 28.87 MB / 0.5424 GB, free: 100 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02415/0.1622, allocations: 19.49 MB / 0.5614 GB, free: 12.53 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.1633, allocations: 27.75 kB / 0.5615 GB, free: 12.5 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.1647, allocations: 0.4924 MB / 0.5619 GB, free: 12.01 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003303/0.168, allocations: 1.249 MB / 0.5632 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00727/0.1753, allocations: 2.85 MB / 0.5659 GB, free: 7.883 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003059/0.1783, allocations: 2.09 MB / 0.568 GB, free: 5.781 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001374/0.1797, allocations: 1.1 MB / 0.5691 GB, free: 4.633 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001046/0.1808, allocations: 0.9388 MB / 0.57 GB, free: 3.691 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.1823, allocations: 1.066 MB / 0.571 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003141/0.1826, allocations: 200 kB / 0.5712 GB, free: 2.426 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005664/0.1882, allocations: 2.087 MB / 0.5732 GB, free: 344 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005566/0.1888, allocations: 482.5 kB / 0.5737 GB, free: 15.86 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.1899, allocations: 0.9723 MB / 0.5747 GB, free: 14.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008911/0.1988, allocations: 4.358 MB / 0.5789 GB, free: 10.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1988, allocations: 0 / 0.5789 GB, free: 10.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1988, allocations: 0 / 0.5789 GB, free: 10.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.564e-05/0.1989, allocations: 0 / 0.5789 GB, free: 10.51 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004674/0.2036, allocations: 2.414 MB / 0.5813 GB, free: 8.035 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.2036, allocations: 8.031 kB / 0.5813 GB, free: 8.027 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.971e-05/0.2036, allocations: 43.5 kB / 0.5813 GB, free: 7.984 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002783/0.2039, allocations: 236.8 kB / 0.5815 GB, free: 7.742 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.2056, allocations: 447 kB / 0.582 GB, free: 7.305 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/0.2074, allocations: 1.084 MB / 0.583 GB, free: 6.176 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.2076, allocations: 190.6 kB / 0.5832 GB, free: 5.977 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002808/0.2079, allocations: 160 kB / 0.5834 GB, free: 5.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003741/0.2116, allocations: 2.225 MB / 0.5855 GB, free: 3.527 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/0.2117, allocations: 3.938 kB / 0.5855 GB, free: 3.523 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001853/0.2118, allocations: 68 kB / 0.5856 GB, free: 3.457 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.736e-05/0.2119, allocations: 44 kB / 0.5856 GB, free: 3.414 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004305/0.2162, allocations: 2.684 MB / 0.5883 GB, free: 0.7227 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.2303/0.4465, allocations: 7.256 MB / 0.5954 GB, free: 60.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.4482, allocations: 1.129 MB / 0.5965 GB, free: 59.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008418/0.449, allocations: 0.5122 MB / 0.597 GB, free: 59.76 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007159/0.4562, allocations: 5.157 MB / 0.602 GB, free: 55.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.4562, allocations: 53.22 kB / 0.602 GB, free: 55.89 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000489/0.4567, allocations: 113.4 kB / 0.6022 GB, free: 55.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 3.035e-06/0.4567, allocations: 0 / 0.6022 GB, free: 55.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01826/0.475, allocations: 4.865 MB / 0.6069 GB, free: 53.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.475, allocations: 113.9 kB / 0.607 GB, free: 53.54 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/0.4767, allocations: 1.478 MB / 0.6085 GB, free: 52.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.4768, allocations: 41.33 kB / 0.6085 GB, free: 52.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003993/0.4772, allocations: 0.9218 MB / 0.6094 GB, free: 52.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002179/0.4774, allocations: 367.8 kB / 0.6097 GB, free: 52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004444/0.4779, allocations: 357 kB / 0.6101 GB, free: 51.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.493e-05/0.4779, allocations: 314.2 kB / 0.6104 GB, free: 51.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009078/0.4788, allocations: 0.6221 MB / 0.611 GB, free: 51.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/0.4799, allocations: 1.327 MB / 0.6123 GB, free: 50.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00198/0.4819, allocations: 1.918 MB / 0.6142 GB, free: 48.67 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-05/0.4819, allocations: 8.031 kB / 0.6142 GB, free: 48.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00514/0.4871, allocations: 2.363 MB / 0.6165 GB, free: 47.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.4871, allocations: 15.75 kB / 0.6165 GB, free: 47.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.522e-05/0.4871, allocations: 27.61 kB / 0.6165 GB, free: 47.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002426/0.4896, allocations: 373.1 kB / 0.6169 GB, free: 47.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002545/0.4921, allocations: 0.5627 MB / 0.6174 GB, free: 47.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006551/0.4986, allocations: 7.91 MB / 0.6251 GB, free: 39.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.5001, allocations: 81.3 kB / 0.6252 GB, free: 39.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001566/0.5002, allocations: 107.3 kB / 0.6253 GB, free: 39.35 MB / 446.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.0005706/0.5008, allocations: 370.1 kB / 0.6257 GB, free: 39.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.5011, allocations: 131.3 kB / 0.6258 GB, free: 39.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004097/0.5051, allocations: 1.533 MB / 0.6273 GB, free: 38.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/0.5052, allocations: 10.59 kB / 0.6273 GB, free: 38.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.5052, allocations: 3.906 kB / 0.6273 GB, free: 38.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.5052, allocations: 7.969 kB / 0.6273 GB, free: 38.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005675/0.5108, allocations: 3.016 MB / 0.6303 GB, free: 36.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.5109, allocations: 7.438 kB / 0.6303 GB, free: 36.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007754/0.5116, allocations: 214.5 kB / 0.6305 GB, free: 36.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002509/0.5141, allocations: 414.2 kB / 0.6309 GB, free: 35.88 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.366e-05/0.5142, allocations: 45.14 kB / 0.6309 GB, free: 35.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005747/0.52, allocations: 7.715 MB / 0.6385 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.52, allocations: 13.28 kB / 0.6385 GB, free: 28.24 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004344/0.5243, allocations: 2.159 MB / 0.6406 GB, free: 26.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003515/0.5247, allocations: 211 kB / 0.6408 GB, free: 25.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/0.5249, allocations: 31.94 kB / 0.6408 GB, free: 25.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006742/0.5255, allocations: 31.98 kB / 0.6408 GB, free: 25.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.5257, allocations: 107 kB / 0.6409 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.805e-05/0.5258, allocations: 50.67 kB / 0.641 GB, free: 25.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008723/0.5266, allocations: 1.021 MB / 0.642 GB, free: 24.71 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5266, allocations: 0 / 0.642 GB, free: 24.71 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002405/0.529, allocations: 0.8222 MB / 0.6428 GB, free: 23.89 MB / 446.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.005619/0.5347, allocations: 3.507 MB / 0.6462 GB, free: 20.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002841/0.5375, allocations: 1.702 MB / 0.6479 GB, free: 18.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.5375, allocations: 0 / 0.6479 GB, free: 18.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.5387, allocations: 0.9586 MB / 0.6488 GB, free: 17.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.5402, allocations: 228.4 kB / 0.649 GB, free: 17.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01745/0.5576, allocations: 13.4 MB / 0.6621 GB, free: 3.332 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005256/0.5581, allocations: 1.222 MB / 0.6633 GB, free: 2.098 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008983/0.559, allocations: 322.5 kB / 0.6636 GB, free: 1.871 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006611/0.5597, allocations: 0.6609 MB / 0.6643 GB, free: 1.215 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5597, allocations: 0 / 0.6643 GB, free: 1.215 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08391/0.6436, allocations: 40.98 MB / 0.7043 GB, free: 8.922 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.86/27.5, allocations: 7.828 kB / 0.7043 GB, free: 8.918 MB / 494.1 MB " [Timeout remaining time 632] (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: 30.55947431101231] Failed to read output from testmodel.py, exit status != 0: 27.675278852053452 27.700546486 27.496688695 Calling exit ...