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.001307/0.001307, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.001419/0.001419, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.441/1.441, 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.1434/0.1434, allocations: 23.89 MB / 333.4 MB, free: 1.168 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.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",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.002592/0.002592, allocations: 64.62 kB / 466.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1101, allocations: 59.84 MB / 0.5142 GB, free: 12.89 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.04356/0.1536, allocations: 30.72 MB / 0.5442 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03185/0.1855, allocations: 25.02 MB / 0.5687 GB, free: 5.094 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001726/0.1872, allocations: 35.75 kB / 0.5687 GB, free: 5.059 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001758/0.189, allocations: 0.6009 MB / 0.5693 GB, free: 4.453 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005595/0.1946, allocations: 1.874 MB / 0.5711 GB, free: 2.566 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009981/0.2045, allocations: 3.445 MB / 0.5745 GB, free: 15.1 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004382/0.2089, allocations: 2.703 MB / 0.5771 GB, free: 12.38 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002598/0.2115, allocations: 1.465 MB / 0.5785 GB, free: 10.87 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002134/0.2137, allocations: 1.278 MB / 0.5798 GB, free: 9.586 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002586/0.2162, allocations: 1.436 MB / 0.5812 GB, free: 8.145 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00066/0.2169, allocations: 264 kB / 0.5814 GB, free: 7.887 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008886/0.2258, allocations: 2.738 MB / 0.5841 GB, free: 5.145 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008254/0.2266, allocations: 0.5998 MB / 0.5847 GB, free: 4.543 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001591/0.2282, allocations: 1.276 MB / 0.586 GB, free: 3.262 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2466/0.4748, allocations: 5.702 MB / 0.5915 GB, free: 34.66 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.4748, allocations: 4.531 kB / 0.5915 GB, free: 34.66 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4748, allocations: 0 / 0.5915 GB, free: 34.66 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.926e-05/0.4749, allocations: 0.5 kB / 0.5915 GB, free: 34.66 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.005971/0.4808, allocations: 3.035 MB / 0.5945 GB, free: 33.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.4809, allocations: 12.5 kB / 0.5945 GB, free: 33.27 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.678e-05/0.481, allocations: 58.98 kB / 0.5946 GB, free: 33.26 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003685/0.4813, allocations: 300.1 kB / 0.5948 GB, free: 33.21 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002128/0.4835, allocations: 0.5115 MB / 0.5953 GB, free: 33.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.4856, allocations: 1.292 MB / 0.5966 GB, free: 32.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.4858, allocations: 225.4 kB / 0.5968 GB, free: 32.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003712/0.4862, allocations: 221.4 kB / 0.597 GB, free: 32.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004333/0.4905, allocations: 2.701 MB / 0.5997 GB, free: 32.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.216e-05/0.4905, allocations: 3.969 kB / 0.5997 GB, free: 32.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002235/0.4908, allocations: 89.25 kB / 0.5998 GB, free: 32.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.25e-05/0.4908, allocations: 56.38 kB / 0.5998 GB, free: 32.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00465/0.4954, allocations: 3.169 MB / 0.6029 GB, free: 32.3 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.0123/0.5078, allocations: 9.324 MB / 0.612 GB, free: 28.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002209/0.51, allocations: 1.76 MB / 0.6137 GB, free: 27.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.5111, allocations: 0.8249 MB / 0.6145 GB, free: 27.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008709/0.5198, allocations: 7.509 MB / 0.6219 GB, free: 21.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.5198, allocations: 45.19 kB / 0.6219 GB, free: 21.4 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001023/0.5208, allocations: 239.5 kB / 0.6221 GB, free: 21.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=113): time 3.116e-06/0.5208, allocations: 0 / 0.6221 GB, free: 21.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=161): time 0.03252/0.5533, allocations: 9.54 MB / 0.6315 GB, free: 16.25 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.5534, allocations: 122.3 kB / 0.6316 GB, free: 16.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001331/0.5547, allocations: 1.345 MB / 0.6329 GB, free: 15.35 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001656/0.5549, allocations: 52.33 kB / 0.6329 GB, free: 15.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000388/0.5553, allocations: 1.087 MB / 0.634 GB, free: 14.33 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003541/0.5556, allocations: 0.5857 MB / 0.6346 GB, free: 13.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005855/0.5562, allocations: 474.6 kB / 0.635 GB, free: 13.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.219e-05/0.5562, allocations: 310.5 kB / 0.6353 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/0.5574, allocations: 0.8467 MB / 0.6361 GB, free: 12.44 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.5588, allocations: 1.713 MB / 0.6378 GB, free: 10.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002706/0.5615, allocations: 2.691 MB / 0.6404 GB, free: 7.453 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/0.5615, allocations: 8 kB / 0.6405 GB, free: 7.445 MB / 446.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.0075/0.569, allocations: 3.465 MB / 0.6438 GB, free: 4.168 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.5691, allocations: 20 kB / 0.6439 GB, free: 4.148 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.041e-05/0.5691, allocations: 31.94 kB / 0.6439 GB, free: 4.117 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004902/0.574, allocations: 1.163 MB / 0.645 GB, free: 2.973 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001678/0.5757, allocations: 0.5109 MB / 0.6455 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009948/0.5856, allocations: 7.628 MB / 0.653 GB, free: 10.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002163/0.5878, allocations: 109.1 kB / 0.6531 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003381/0.5881, allocations: 140 kB / 0.6532 GB, free: 10.29 MB / 462.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.0009568/0.5891, allocations: 454.5 kB / 0.6536 GB, free: 9.875 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004327/0.5895, allocations: 162.9 kB / 0.6538 GB, free: 9.715 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00821/0.5977, allocations: 2.839 MB / 0.6566 GB, free: 6.957 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.95e-05/0.5977, allocations: 18.69 kB / 0.6566 GB, free: 6.941 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.5977, allocations: 4 kB / 0.6566 GB, free: 6.938 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.422e-05/0.5978, allocations: 7.969 kB / 0.6566 GB, free: 6.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/0.6098, allocations: 4.862 MB / 0.6613 GB, free: 2.062 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.186e-06/0.6098, allocations: 4 kB / 0.6614 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.611, allocations: 260.3 kB / 0.6616 GB, free: 1.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00494/0.6159, allocations: 1.037 MB / 0.6626 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001928/0.6161, allocations: 59.95 kB / 0.6627 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009061/0.6252, allocations: 6.924 MB / 0.6694 GB, free: 9.434 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.6252, allocations: 4 kB / 0.6694 GB, free: 9.43 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009077/0.6343, allocations: 3.665 MB / 0.673 GB, free: 5.75 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005927/0.6349, allocations: 220 kB / 0.6732 GB, free: 5.516 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000278/0.6352, allocations: 36 kB / 0.6733 GB, free: 5.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.6362, allocations: 43.98 kB / 0.6733 GB, free: 5.438 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003795/0.6365, allocations: 139.7 kB / 0.6734 GB, free: 5.301 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001613/0.6367, allocations: 79.95 kB / 0.6735 GB, free: 5.223 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001226/0.6379, allocations: 0.8836 MB / 0.6744 GB, free: 4.34 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6379, allocations: 0 / 0.6744 GB, free: 4.34 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00387/0.6418, allocations: 1.113 MB / 0.6755 GB, free: 3.227 MB / 478.1 MB 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.01179/0.6536, allocations: 5.276 MB / 0.6806 GB, free: 14.14 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005653/0.6592, allocations: 2.648 MB / 0.6832 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.6592, allocations: 0 / 0.6832 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00281/0.6621, allocations: 1.396 MB / 0.6846 GB, free: 10.13 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.664, allocations: 283.8 kB / 0.6848 GB, free: 9.883 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03566/0.6996, allocations: 17.18 MB / 0.7016 GB, free: 7.953 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/0.7008, allocations: 1.391 MB / 0.703 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001427/0.7022, allocations: 396.2 kB / 0.7033 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/0.7035, allocations: 0.8865 MB / 0.7042 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of SimCode: time 1.162e-06/0.7035, allocations: 0 / 0.7042 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1125/0.816, allocations: 57.83 MB / 0.7607 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.02/32.84, allocations: 18.42 kB / 0.7607 GB, free: 12.12 MB / 0.5606 GB " [Timeout remaining time 627] (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 sys.exit(0), Time elapsed: 35.89043440902606] Failed to read output from testmodel.py, exit status != 0: 33.02622674795566 33.044526738 32.56597223 Calling exit ...