Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.001634/0.001634, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001931/0.001931, allocations: 211.3 kB / 22.24 MB, free: 4.855 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.456/1.456, allocations: 230.6 MB / 256 MB, free: 7.812 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.1367/0.1367, allocations: 23.99 MB / 336.4 MB, free: 10.88 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.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",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.002077/0.002077, allocations: 75.91 kB / 471.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3305, allocations: 59.89 MB / 0.5187 GB, free: 9.469 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.07511/0.4056, allocations: 29.85 MB / 0.5479 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03332/0.4389, allocations: 21.98 MB / 0.5694 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002577/0.4415, allocations: 31.75 kB / 0.5694 GB, free: 5.82 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002384/0.4439, allocations: 0.5542 MB / 0.5699 GB, free: 5.262 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006561/0.4504, allocations: 1.851 MB / 0.5717 GB, free: 3.398 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01087/0.4613, allocations: 3.472 MB / 0.5751 GB, free: 15.9 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004492/0.4658, allocations: 2.707 MB / 0.5778 GB, free: 13.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002562/0.4684, allocations: 1.403 MB / 0.5791 GB, free: 11.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002173/0.4705, allocations: 1.278 MB / 0.5804 GB, free: 10.45 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002549/0.4731, allocations: 1.284 MB / 0.5816 GB, free: 9.164 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008424/0.4739, allocations: 260 kB / 0.5819 GB, free: 8.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007612/0.4815, allocations: 2.566 MB / 0.5844 GB, free: 6.34 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00103/0.4826, allocations: 0.6076 MB / 0.585 GB, free: 5.73 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001998/0.4846, allocations: 1.074 MB / 0.586 GB, free: 4.652 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0138/0.4984, allocations: 5.696 MB / 0.5916 GB, free: 14.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.4984, allocations: 4 kB / 0.5916 GB, free: 14.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.4984, allocations: 0 / 0.5916 GB, free: 14.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001281/0.4985, allocations: 4 kB / 0.5916 GB, free: 14.93 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.007074/0.5056, allocations: 2.956 MB / 0.5945 GB, free: 11.92 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.5056, allocations: 8.031 kB / 0.5945 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005389/0.5062, allocations: 304.1 kB / 0.5948 GB, free: 11.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002364/0.5085, allocations: 0.5103 MB / 0.5953 GB, free: 11.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002811/0.5113, allocations: 1.219 MB / 0.5965 GB, free: 9.832 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002763/0.5116, allocations: 279.2 kB / 0.5967 GB, free: 9.531 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004596/0.5121, allocations: 220 kB / 0.597 GB, free: 9.316 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0052/0.5173, allocations: 2.737 MB / 0.5996 GB, free: 6.461 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.198e-05/0.5173, allocations: 3.938 kB / 0.5996 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002423/0.5176, allocations: 92 kB / 0.5997 GB, free: 6.367 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-05/0.5176, allocations: 52 kB / 0.5998 GB, free: 6.316 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005824/0.5234, allocations: 3.156 MB / 0.6029 GB, free: 3.156 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.0158/0.5392, allocations: 8.005 MB / 0.6107 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002787/0.542, allocations: 1.451 MB / 0.6121 GB, free: 9.496 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.5434, allocations: 0.829 MB / 0.6129 GB, free: 8.66 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0106/0.554, allocations: 4.365 MB / 0.6172 GB, free: 4.262 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.517e-05/0.5541, allocations: 47.56 kB / 0.6172 GB, free: 4.207 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001122/0.5552, allocations: 230.7 kB / 0.6174 GB, free: 3.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 5.189e-06/0.5552, allocations: 3.938 kB / 0.6174 GB, free: 3.977 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.03688/0.5921, allocations: 9.31 MB / 0.6265 GB, free: 10.61 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.949e-05/0.5922, allocations: 128 kB / 0.6266 GB, free: 10.46 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/0.5941, allocations: 1.407 MB / 0.628 GB, free: 9.031 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002486/0.5944, allocations: 53.7 kB / 0.6281 GB, free: 8.973 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008854/0.5953, allocations: 1.092 MB / 0.6291 GB, free: 7.867 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005991/0.5959, allocations: 0.581 MB / 0.6297 GB, free: 7.281 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007241/0.5966, allocations: 476.6 kB / 0.6302 GB, free: 6.809 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.5967, allocations: 309.1 kB / 0.6305 GB, free: 6.504 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.5984, allocations: 0.852 MB / 0.6313 GB, free: 5.648 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002401/0.6008, allocations: 1.709 MB / 0.633 GB, free: 3.535 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004179/0.605, allocations: 2.705 MB / 0.6356 GB, free: 440 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.787e-05/0.605, allocations: 8 kB / 0.6356 GB, free: 432 kB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009368/0.6144, allocations: 3.48 MB / 0.639 GB, free: 12.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.997e-05/0.6144, allocations: 19.94 kB / 0.639 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.385e-05/0.6145, allocations: 32 kB / 0.639 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005604/0.6201, allocations: 1.163 MB / 0.6402 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/0.6221, allocations: 0.5109 MB / 0.6407 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01091/0.6331, allocations: 7.26 MB / 0.6478 GB, free: 3.551 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/0.6349, allocations: 111.8 kB / 0.6479 GB, free: 3.441 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002718/0.6352, allocations: 140 kB / 0.648 GB, free: 3.305 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009002/0.6361, allocations: 448.9 kB / 0.6484 GB, free: 2.855 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003859/0.6365, allocations: 170.9 kB / 0.6486 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008363/0.6448, allocations: 2.831 MB / 0.6514 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/0.6448, allocations: 20 kB / 0.6514 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.6448, allocations: 0 / 0.6514 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.209e-05/0.6449, allocations: 11.97 kB / 0.6514 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01206/0.6569, allocations: 4.579 MB / 0.6559 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/0.6569, allocations: 4 kB / 0.6559 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.6581, allocations: 259.9 kB / 0.6561 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005066/0.6632, allocations: 1.03 MB / 0.6571 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002122/0.6634, allocations: 71.95 kB / 0.6572 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009331/0.6727, allocations: 6.561 MB / 0.6636 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.6727, allocations: 8.125 kB / 0.6636 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009598/0.6823, allocations: 3.658 MB / 0.6672 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005089/0.6828, allocations: 150.8 kB / 0.6673 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003073/0.6831, allocations: 35.98 kB / 0.6674 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.6842, allocations: 43.94 kB / 0.6674 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003781/0.6846, allocations: 157 kB / 0.6676 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001668/0.6847, allocations: 67.97 kB / 0.6676 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001356/0.6861, allocations: 0.8921 MB / 0.6685 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6861, allocations: 0 / 0.6685 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004122/0.6902, allocations: 1.107 MB / 0.6696 GB, free: 12.65 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01246/0.7027, allocations: 5.274 MB / 0.6747 GB, free: 7.309 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00603/0.7087, allocations: 2.579 MB / 0.6772 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.7087, allocations: 0 / 0.6772 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00295/0.7117, allocations: 1.319 MB / 0.6785 GB, free: 3.336 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001748/0.7134, allocations: 285.9 kB / 0.6788 GB, free: 3.059 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03596/0.7494, allocations: 17.21 MB / 0.6956 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.7504, allocations: 0.8231 MB / 0.6964 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001518/0.7519, allocations: 389.1 kB / 0.6968 GB, free: 15.43 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001379/0.7533, allocations: 0.8858 MB / 0.6977 GB, free: 14.55 MB / 0.545 GB Notification: Performance of SimCode: time 1.322e-06/0.7533, allocations: 0 / 0.6977 GB, free: 14.55 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.391/1.144, allocations: 58.76 MB / 0.755 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.8/16.95, allocations: 17.81 kB / 0.7551 GB, free: 170.7 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.70044381869957] Failed to read output from testmodel.py, exit status != 0: 17.100275912787765 17.112726334 16.611763649 Calling exit ...