Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001226/0.001226, 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.001387/0.001387, allocations: 218 kB / 22.26 MB, free: 5.121 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.396/1.396, allocations: 230.6 MB / 256 MB, free: 7.98 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.126/0.126, allocations: 23.85 MB / 336.3 MB, free: 11.2 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.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_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.001955/0.001955, allocations: 75.89 kB / 471.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2776, allocations: 59.84 MB / 0.5186 GB, free: 9.633 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.05012/0.3277, allocations: 30.98 MB / 0.5488 GB, free: 9.125 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03058/0.3583, allocations: 25.05 MB / 0.5733 GB, free: 2.055 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001631/0.3599, allocations: 31.75 kB / 0.5733 GB, free: 2.023 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.3615, allocations: 0.6142 MB / 0.5739 GB, free: 1.441 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005242/0.3668, allocations: 1.89 MB / 0.5758 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009213/0.376, allocations: 3.472 MB / 0.5792 GB, free: 12.04 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004118/0.3801, allocations: 2.715 MB / 0.5818 GB, free: 9.316 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001847/0.3819, allocations: 1.434 MB / 0.5832 GB, free: 7.836 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001477/0.3834, allocations: 1.278 MB / 0.5845 GB, free: 6.555 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001932/0.3854, allocations: 1.444 MB / 0.5859 GB, free: 5.105 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003581/0.3857, allocations: 264 kB / 0.5861 GB, free: 4.848 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007182/0.3929, allocations: 2.73 MB / 0.5888 GB, free: 2.113 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005736/0.3935, allocations: 0.6075 MB / 0.5894 GB, free: 1.504 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.3947, allocations: 1.28 MB / 0.5906 GB, free: 224 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.4049, allocations: 5.708 MB / 0.5962 GB, free: 10.49 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.4049, allocations: 4 kB / 0.5962 GB, free: 10.48 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.4049, allocations: 0 / 0.5962 GB, free: 10.48 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.921e-05/0.405, allocations: 0 / 0.5962 GB, free: 10.48 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.00541/0.4104, allocations: 2.956 MB / 0.5991 GB, free: 7.477 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.4104, allocations: 8.031 kB / 0.5991 GB, free: 7.469 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003459/0.4108, allocations: 304.1 kB / 0.5994 GB, free: 7.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00194/0.4127, allocations: 0.5181 MB / 0.5999 GB, free: 6.641 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002287/0.415, allocations: 1.219 MB / 0.6011 GB, free: 5.383 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/0.4152, allocations: 275.2 kB / 0.6014 GB, free: 5.086 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004043/0.4157, allocations: 220 kB / 0.6016 GB, free: 4.871 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004283/0.4199, allocations: 2.716 MB / 0.6042 GB, free: 2.043 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.144e-05/0.42, allocations: 0 / 0.6042 GB, free: 2.043 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002074/0.4202, allocations: 88 kB / 0.6043 GB, free: 1.957 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.703e-05/0.4202, allocations: 52 kB / 0.6043 GB, free: 1.906 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004926/0.4252, allocations: 3.183 MB / 0.6075 GB, free: 14.72 MB / 462.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.0142/0.4394, allocations: 9.236 MB / 0.6165 GB, free: 5.125 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002474/0.4418, allocations: 1.462 MB / 0.6179 GB, free: 3.645 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001351/0.4432, allocations: 0.8341 MB / 0.6187 GB, free: 2.801 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009723/0.4529, allocations: 4.611 MB / 0.6232 GB, free: 14.16 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.4529, allocations: 43.56 kB / 0.6233 GB, free: 14.11 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009839/0.4539, allocations: 230.7 kB / 0.6235 GB, free: 13.88 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 2.865e-06/0.4539, allocations: 0 / 0.6235 GB, free: 13.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.03532/0.4892, allocations: 9.31 MB / 0.6326 GB, free: 4.512 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.446e-05/0.4893, allocations: 128.1 kB / 0.6327 GB, free: 4.363 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.491, allocations: 1.349 MB / 0.634 GB, free: 2.996 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.4911, allocations: 57.7 kB / 0.6341 GB, free: 2.934 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007653/0.4919, allocations: 1.081 MB / 0.6351 GB, free: 1.84 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005163/0.4924, allocations: 0.5928 MB / 0.6357 GB, free: 1.242 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006579/0.4931, allocations: 476.6 kB / 0.6362 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.4932, allocations: 305.1 kB / 0.6365 GB, free: 480 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.4946, allocations: 0.852 MB / 0.6373 GB, free: 15.61 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002132/0.4968, allocations: 1.72 MB / 0.639 GB, free: 13.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00372/0.5005, allocations: 2.705 MB / 0.6416 GB, free: 10.38 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/0.5005, allocations: 8 kB / 0.6416 GB, free: 10.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008583/0.5091, allocations: 3.476 MB / 0.645 GB, free: 6.871 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.5091, allocations: 19.94 kB / 0.645 GB, free: 6.852 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.734e-05/0.5091, allocations: 28.53 kB / 0.6451 GB, free: 6.824 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00524/0.5144, allocations: 1.163 MB / 0.6462 GB, free: 5.645 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001715/0.5161, allocations: 0.5148 MB / 0.6467 GB, free: 5.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/0.5262, allocations: 7.326 MB / 0.6538 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/0.5278, allocations: 99.92 kB / 0.6539 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000237/0.528, allocations: 147.9 kB / 0.6541 GB, free: 13.2 MB / 0.4981 GB 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.0008204/0.5289, allocations: 446.8 kB / 0.6545 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003517/0.5292, allocations: 166.9 kB / 0.6547 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007752/0.537, allocations: 2.839 MB / 0.6574 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.739e-05/0.537, allocations: 20 kB / 0.6575 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.537, allocations: 4 kB / 0.6575 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/0.537, allocations: 7.969 kB / 0.6575 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/0.5481, allocations: 4.828 MB / 0.6622 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.5481, allocations: 0 / 0.6622 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.5492, allocations: 259.9 kB / 0.6624 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004705/0.5539, allocations: 1.042 MB / 0.6634 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001468/0.554, allocations: 55.97 kB / 0.6635 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008632/0.5627, allocations: 6.622 MB / 0.67 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.5627, allocations: 3.938 kB / 0.67 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008631/0.5713, allocations: 3.654 MB / 0.6735 GB, free: 8.695 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003896/0.5717, allocations: 150.8 kB / 0.6737 GB, free: 8.547 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002415/0.5719, allocations: 39.98 kB / 0.6737 GB, free: 8.508 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009866/0.5729, allocations: 39.92 kB / 0.6738 GB, free: 8.469 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003314/0.5733, allocations: 153 kB / 0.6739 GB, free: 8.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001448/0.5734, allocations: 71.95 kB / 0.674 GB, free: 8.25 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001151/0.5746, allocations: 0.8921 MB / 0.6748 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.5746, allocations: 0 / 0.6748 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00338/0.5779, allocations: 1.111 MB / 0.6759 GB, free: 6.242 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.01119/0.5891, allocations: 5.277 MB / 0.6811 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005193/0.5943, allocations: 2.577 MB / 0.6836 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.5943, allocations: 1.812 kB / 0.6836 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00243/0.5968, allocations: 1.315 MB / 0.6849 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.5984, allocations: 280.5 kB / 0.6852 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03146/0.6298, allocations: 17.24 MB / 0.702 GB, free: 10.24 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001117/0.631, allocations: 1.395 MB / 0.7034 GB, free: 8.805 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001226/0.6322, allocations: 393.8 kB / 0.7037 GB, free: 8.434 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001158/0.6333, allocations: 0.8858 MB / 0.7046 GB, free: 7.547 MB / 0.545 GB Notification: Performance of SimCode: time 8.42e-07/0.6333, allocations: 0 / 0.7046 GB, free: 7.547 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3018/0.9351, allocations: 59.71 MB / 0.7629 GB, free: 164 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.44/32.38, allocations: 10.55 kB / 0.7629 GB, free: 164 MB / 0.5606 GB " [Timeout remaining time 627] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 35.0475639139986] Failed to read output from testmodel.py, exit status != 0: 32.524662729993 32.539921484 32.131487091 Calling exit ...