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.001797/0.001797, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.001545/0.001545, allocations: 220.8 kB / 22.25 MB, free: 5.215 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.4/1.4, allocations: 230.6 MB / 256 MB, free: 8.016 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.1355/0.1355, allocations: 23.89 MB / 336.3 MB, free: 11.15 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.002084/0.002084, allocations: 63.91 kB / 471.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3075, allocations: 59.87 MB / 0.5187 GB, free: 9.551 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.04167/0.3491, allocations: 30.97 MB / 0.5489 GB, free: 9.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03535/0.3845, allocations: 25.06 MB / 0.5734 GB, free: 1.988 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00208/0.3866, allocations: 27.81 kB / 0.5734 GB, free: 1.961 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002207/0.3888, allocations: 0.6101 MB / 0.574 GB, free: 1.371 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006509/0.3953, allocations: 1.893 MB / 0.5758 GB, free: 15.46 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01039/0.4057, allocations: 3.476 MB / 0.5792 GB, free: 11.97 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004651/0.4103, allocations: 2.707 MB / 0.5819 GB, free: 9.246 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002486/0.4128, allocations: 1.426 MB / 0.5833 GB, free: 7.773 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00211/0.4149, allocations: 1.274 MB / 0.5845 GB, free: 6.496 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002578/0.4175, allocations: 1.448 MB / 0.5859 GB, free: 5.043 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007339/0.4182, allocations: 264 kB / 0.5862 GB, free: 4.785 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008424/0.4267, allocations: 2.73 MB / 0.5889 GB, free: 2.051 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009958/0.4276, allocations: 0.6075 MB / 0.5894 GB, free: 1.441 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002194/0.4298, allocations: 1.276 MB / 0.5907 GB, free: 164 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01311/0.443, allocations: 5.712 MB / 0.5963 GB, free: 10.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.443, allocations: 0 / 0.5963 GB, free: 10.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.443, allocations: 0 / 0.5963 GB, free: 10.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001228/0.4431, allocations: 3.938 kB / 0.5963 GB, free: 10.42 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.007212/0.4503, allocations: 2.96 MB / 0.5992 GB, free: 7.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.4503, allocations: 8.031 kB / 0.5992 GB, free: 7.402 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005579/0.4509, allocations: 304.1 kB / 0.5995 GB, free: 7.094 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002287/0.4532, allocations: 0.5103 MB / 0.6 GB, free: 6.582 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002688/0.4559, allocations: 1.235 MB / 0.6012 GB, free: 5.309 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002668/0.4561, allocations: 271.2 kB / 0.6014 GB, free: 5.016 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004835/0.4566, allocations: 220 kB / 0.6016 GB, free: 4.801 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005142/0.4618, allocations: 2.712 MB / 0.6043 GB, free: 1.977 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.01e-05/0.4618, allocations: 0 / 0.6043 GB, free: 1.977 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002598/0.4621, allocations: 88 kB / 0.6044 GB, free: 1.891 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.844e-05/0.4621, allocations: 52 kB / 0.6044 GB, free: 1.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005435/0.4676, allocations: 3.183 MB / 0.6075 GB, free: 14.65 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.01612/0.4837, allocations: 9.236 MB / 0.6165 GB, free: 5.059 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002599/0.4863, allocations: 1.466 MB / 0.618 GB, free: 3.574 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/0.4877, allocations: 0.8301 MB / 0.6188 GB, free: 2.734 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01009/0.4977, allocations: 4.607 MB / 0.6233 GB, free: 14.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.257e-05/0.4978, allocations: 43.56 kB / 0.6233 GB, free: 14.05 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001057/0.4988, allocations: 234.7 kB / 0.6236 GB, free: 13.82 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 5.841e-06/0.4988, allocations: 0 / 0.6236 GB, free: 13.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.03661/0.5355, allocations: 9.314 MB / 0.6326 GB, free: 4.441 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.006e-05/0.5355, allocations: 120.1 kB / 0.6328 GB, free: 4.301 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001918/0.5375, allocations: 1.353 MB / 0.6341 GB, free: 2.93 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000182/0.5376, allocations: 53.7 kB / 0.6341 GB, free: 2.871 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008853/0.5385, allocations: 1.088 MB / 0.6352 GB, free: 1.77 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006172/0.5391, allocations: 0.5849 MB / 0.6358 GB, free: 1.18 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007783/0.5399, allocations: 476.6 kB / 0.6362 GB, free: 0.707 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.5401, allocations: 309.1 kB / 0.6365 GB, free: 412 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/0.5416, allocations: 0.852 MB / 0.6374 GB, free: 15.55 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/0.5439, allocations: 1.716 MB / 0.639 GB, free: 13.43 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004104/0.548, allocations: 2.701 MB / 0.6417 GB, free: 10.32 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.105e-05/0.5481, allocations: 8 kB / 0.6417 GB, free: 10.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009195/0.5573, allocations: 3.48 MB / 0.6451 GB, free: 6.812 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.124e-05/0.5573, allocations: 19.94 kB / 0.6451 GB, free: 6.793 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-05/0.5573, allocations: 28 kB / 0.6451 GB, free: 6.766 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005467/0.5628, allocations: 1.17 MB / 0.6463 GB, free: 5.582 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/0.5646, allocations: 0.5109 MB / 0.6468 GB, free: 5.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/0.5754, allocations: 7.327 MB / 0.6539 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/0.5773, allocations: 107.9 kB / 0.654 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003792/0.5777, allocations: 140 kB / 0.6541 GB, free: 13.13 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.001005/0.5787, allocations: 448.9 kB / 0.6546 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004903/0.5792, allocations: 166.9 kB / 0.6547 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008316/0.5875, allocations: 2.838 MB / 0.6575 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.5875, allocations: 20 kB / 0.6575 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.5875, allocations: 0 / 0.6575 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.262e-05/0.5875, allocations: 11.97 kB / 0.6575 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/0.5998, allocations: 4.817 MB / 0.6622 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.5998, allocations: 4 kB / 0.6622 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.6009, allocations: 259.7 kB / 0.6625 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004909/0.6058, allocations: 1.042 MB / 0.6635 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/0.606, allocations: 63.95 kB / 0.6636 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009173/0.6151, allocations: 6.614 MB / 0.67 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.6151, allocations: 3.938 kB / 0.67 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009128/0.6243, allocations: 3.662 MB / 0.6736 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004871/0.6248, allocations: 150.9 kB / 0.6738 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003397/0.6251, allocations: 36 kB / 0.6738 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.6262, allocations: 39.92 kB / 0.6738 GB, free: 8.418 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003717/0.6266, allocations: 153 kB / 0.674 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/0.6267, allocations: 71.95 kB / 0.674 GB, free: 8.199 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00135/0.6281, allocations: 0.8882 MB / 0.6749 GB, free: 7.309 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6281, allocations: 0 / 0.6749 GB, free: 7.309 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003637/0.6317, allocations: 1.118 MB / 0.676 GB, free: 6.188 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.01167/0.6434, allocations: 5.266 MB / 0.6811 GB, free: 0.8438 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005555/0.6489, allocations: 2.586 MB / 0.6837 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.649, allocations: 0 / 0.6837 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002609/0.6516, allocations: 1.324 MB / 0.685 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.6534, allocations: 279.6 kB / 0.6852 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03358/0.6869, allocations: 17.24 MB / 0.7021 GB, free: 10.18 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/0.6881, allocations: 1.391 MB / 0.7034 GB, free: 8.75 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00134/0.6895, allocations: 388.4 kB / 0.7038 GB, free: 8.383 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/0.6907, allocations: 0.8858 MB / 0.7047 GB, free: 7.496 MB / 0.545 GB Notification: Performance of SimCode: time 6.62e-07/0.6907, allocations: 0 / 0.7047 GB, free: 7.496 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3308/1.021, allocations: 59.71 MB / 0.763 GB, free: 164 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.08/32.1, allocations: 6.891 kB / 0.763 GB, free: 164 MB / 0.5606 GB " [Timeout remaining time 628] (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: 34.99783047614619] Failed to read output from testmodel.py, exit status != 0: 32.25213058409281 32.262657976 31.817269977 Calling exit ...