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.001847/0.001847, allocations: 108.9 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.00224/0.00224, allocations: 216.2 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.53/1.53, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.1353/0.1353, allocations: 23.84 MB / 332.7 MB, free: 12.36 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.002047/0.002047, allocations: 63.91 kB / 466 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3053, allocations: 59.81 MB / 0.5135 GB, free: 8.84 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.04006/0.3454, allocations: 30.92 MB / 0.5437 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03159/0.377, allocations: 25.01 MB / 0.5681 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00181/0.3788, allocations: 31.75 kB / 0.5681 GB, free: 2.988 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00196/0.3807, allocations: 0.6059 MB / 0.5687 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005987/0.3867, allocations: 1.879 MB / 0.5705 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009589/0.3963, allocations: 3.452 MB / 0.5739 GB, free: 13.37 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004187/0.4005, allocations: 2.699 MB / 0.5766 GB, free: 10.66 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00203/0.4025, allocations: 1.457 MB / 0.578 GB, free: 9.152 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.4043, allocations: 1.278 MB / 0.5792 GB, free: 7.871 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002199/0.4065, allocations: 1.448 MB / 0.5806 GB, free: 6.418 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005601/0.407, allocations: 264 kB / 0.5809 GB, free: 6.16 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007951/0.415, allocations: 2.726 MB / 0.5836 GB, free: 3.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008601/0.4159, allocations: 0.6076 MB / 0.5841 GB, free: 2.82 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001859/0.4177, allocations: 1.276 MB / 0.5854 GB, free: 1.539 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01228/0.43, allocations: 5.72 MB / 0.591 GB, free: 11.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.43, allocations: 0 / 0.591 GB, free: 11.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.43, allocations: 0 / 0.591 GB, free: 11.8 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.062e-05/0.4301, allocations: 4 kB / 0.591 GB, free: 11.79 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.00664/0.4367, allocations: 3.024 MB / 0.5939 GB, free: 8.699 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.4368, allocations: 16.02 kB / 0.594 GB, free: 8.684 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004673/0.4372, allocations: 292.1 kB / 0.5942 GB, free: 8.387 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002288/0.4395, allocations: 0.522 MB / 0.5947 GB, free: 7.863 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002567/0.4421, allocations: 1.295 MB / 0.596 GB, free: 6.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.4423, allocations: 219.8 kB / 0.5962 GB, free: 6.289 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005489/0.4429, allocations: 219.9 kB / 0.5964 GB, free: 6.074 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005295/0.4482, allocations: 2.704 MB / 0.5991 GB, free: 3.258 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.103e-05/0.4482, allocations: 0 / 0.5991 GB, free: 3.258 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000255/0.4485, allocations: 88 kB / 0.5991 GB, free: 3.172 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.317e-05/0.4485, allocations: 55.98 kB / 0.5992 GB, free: 3.117 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005999/0.4545, allocations: 3.172 MB / 0.6023 GB, free: 15.94 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.01777/0.4723, allocations: 9.317 MB / 0.6114 GB, free: 6.27 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002997/0.4753, allocations: 1.762 MB / 0.6131 GB, free: 4.414 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.4768, allocations: 0.8296 MB / 0.6139 GB, free: 3.57 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01269/0.4895, allocations: 7.505 MB / 0.6213 GB, free: 11.32 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.371e-05/0.4896, allocations: 51.56 kB / 0.6213 GB, free: 11.26 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001155/0.4907, allocations: 234.7 kB / 0.6215 GB, free: 11.03 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 5.681e-06/0.4907, allocations: 0 / 0.6215 GB, free: 11.03 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.04051/0.5312, allocations: 9.531 MB / 0.6308 GB, free: 1.387 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.604e-05/0.5313, allocations: 120.1 kB / 0.631 GB, free: 1.242 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002085/0.5334, allocations: 1.345 MB / 0.6323 GB, free: 15.88 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002986/0.5337, allocations: 53.7 kB / 0.6323 GB, free: 15.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008706/0.5346, allocations: 1.088 MB / 0.6334 GB, free: 14.72 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007972/0.5354, allocations: 0.5849 MB / 0.634 GB, free: 14.13 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009468/0.5363, allocations: 480.7 kB / 0.6344 GB, free: 13.65 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.5365, allocations: 305.1 kB / 0.6347 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001684/0.5382, allocations: 0.848 MB / 0.6355 GB, free: 12.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/0.5406, allocations: 1.712 MB / 0.6372 GB, free: 10.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004283/0.5449, allocations: 2.697 MB / 0.6398 GB, free: 7.289 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.975e-05/0.5449, allocations: 8 kB / 0.6398 GB, free: 7.281 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009904/0.5548, allocations: 3.472 MB / 0.6432 GB, free: 3.785 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/0.5549, allocations: 19.94 kB / 0.6433 GB, free: 3.766 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-05/0.5549, allocations: 28 kB / 0.6433 GB, free: 3.738 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005642/0.5606, allocations: 1.158 MB / 0.6444 GB, free: 2.566 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001985/0.5626, allocations: 0.5148 MB / 0.6449 GB, free: 2.051 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/0.5741, allocations: 7.629 MB / 0.6524 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/0.5761, allocations: 104 kB / 0.6525 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000453/0.5766, allocations: 140 kB / 0.6526 GB, free: 9.742 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.001169/0.5777, allocations: 452.8 kB / 0.653 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005667/0.5783, allocations: 167 kB / 0.6532 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009058/0.5874, allocations: 2.843 MB / 0.656 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.583e-05/0.5874, allocations: 16 kB / 0.656 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.728e-05/0.5874, allocations: 4 kB / 0.656 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.201e-05/0.5874, allocations: 7.969 kB / 0.656 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/0.6007, allocations: 4.853 MB / 0.6607 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.6007, allocations: 0 / 0.6607 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.6019, allocations: 267.8 kB / 0.661 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005249/0.6072, allocations: 1.037 MB / 0.662 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002702/0.6075, allocations: 59.97 kB / 0.6621 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009739/0.6172, allocations: 6.922 MB / 0.6688 GB, free: 8.547 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/0.6172, allocations: 7.969 kB / 0.6688 GB, free: 8.539 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009601/0.6268, allocations: 3.658 MB / 0.6724 GB, free: 4.82 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004498/0.6273, allocations: 228.1 kB / 0.6726 GB, free: 4.578 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003774/0.6276, allocations: 32 kB / 0.6726 GB, free: 4.547 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.6288, allocations: 51.91 kB / 0.6727 GB, free: 4.496 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004152/0.6293, allocations: 149.1 kB / 0.6728 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002039/0.6295, allocations: 71.95 kB / 0.6729 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001383/0.6308, allocations: 0.8764 MB / 0.6738 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6308, allocations: 7.938 kB / 0.6738 GB, free: 3.391 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0039/0.6347, allocations: 1.107 MB / 0.6748 GB, free: 2.281 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.01239/0.6471, allocations: 5.277 MB / 0.68 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00604/0.6532, allocations: 2.65 MB / 0.6826 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/0.6532, allocations: 0 / 0.6826 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003058/0.6562, allocations: 1.396 MB / 0.684 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/0.6583, allocations: 282.6 kB / 0.6842 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03721/0.6955, allocations: 17.18 MB / 0.701 GB, free: 6.148 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/0.697, allocations: 1.391 MB / 0.7024 GB, free: 4.723 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001494/0.6985, allocations: 395 kB / 0.7027 GB, free: 4.348 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001422/0.6999, allocations: 0.8819 MB / 0.7036 GB, free: 3.465 MB / 0.545 GB Notification: Performance of SimCode: time 8.82e-07/0.6999, allocations: 4 kB / 0.7036 GB, free: 3.461 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.322/1.022, allocations: 57.78 MB / 0.76 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.18/33.2, allocations: 5.422 kB / 0.76 GB, free: 164.7 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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: 36.12305117491633] Failed to read output from testmodel.py, exit status != 0: 33.33584615099244 33.351068155 32.91775867 Calling exit ...