Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.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.0007524/0.0007524, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007963/0.0007963, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8298/0.8298, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.08052/0.08052, allocations: 17.45 MB / 276.6 MB, free: 11.76 MB / 266.7 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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 411.6 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.807e-05/1.919e-05, allocations: 6.953 kB / 411.6 MB, free: 12.46 MB / 330.7 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.H2O_ElectrochemicalCell): time 0.01951/0.01953, allocations: 28.5 MB / 440.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01344/0.03297, allocations: 17.13 MB / 457.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006699/0.03364, allocations: 23.81 kB / 457.2 MB, free: 12.29 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007787/0.03442, allocations: 484.5 kB / 457.7 MB, free: 11.84 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001956/0.03637, allocations: 1.241 MB / 459 MB, free: 10.59 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004453/0.04083, allocations: 2.973 MB / 461.9 MB, free: 7.594 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001664/0.04249, allocations: 2.175 MB / 464.1 MB, free: 5.41 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007203/0.04321, allocations: 1.065 MB / 465.2 MB, free: 4.293 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007429/0.04396, allocations: 1.345 MB / 466.5 MB, free: 2.945 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006425/0.0446, allocations: 0.826 MB / 467.3 MB, free: 2.117 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001471/0.04474, allocations: 200 kB / 467.5 MB, free: 1.922 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002484/0.04723, allocations: 1.977 MB / 469.5 MB, free: 15.94 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002403/0.04747, allocations: 482.3 kB / 470 MB, free: 15.47 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003957/0.04786, allocations: 0.7055 MB / 470.7 MB, free: 14.76 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003618/0.05148, allocations: 4.561 MB / 475.2 MB, free: 10.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.05149, allocations: 4 kB / 475.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.05149, allocations: 0 / 475.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.0515, allocations: 4 kB / 475.3 MB, free: 10.18 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.002256/0.05376, allocations: 2.304 MB / 477.6 MB, free: 7.828 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.0538, allocations: 12.03 kB / 477.6 MB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001897/0.05399, allocations: 232.8 kB / 477.8 MB, free: 7.578 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.05508, allocations: 458.9 kB / 478.2 MB, free: 7.129 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.05615, allocations: 1.006 MB / 479.3 MB, free: 6.094 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.05627, allocations: 234.7 kB / 479.5 MB, free: 5.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/0.05643, allocations: 172.3 kB / 479.7 MB, free: 5.672 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/0.0584, allocations: 2.249 MB / 481.9 MB, free: 3.355 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.05842, allocations: 4 kB / 481.9 MB, free: 3.352 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.05852, allocations: 68 kB / 482 MB, free: 3.285 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.05854, allocations: 40 kB / 482 MB, free: 3.246 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00232/0.06086, allocations: 2.696 MB / 484.7 MB, free: 0.543 MB / 378.7 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.005805/0.06667, allocations: 6.309 MB / 491 MB, free: 10.08 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.06768, allocations: 0.9833 MB / 492 MB, free: 9.074 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007281/0.06841, allocations: 0.5174 MB / 492.5 MB, free: 8.539 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003481/0.07189, allocations: 2.987 MB / 495.5 MB, free: 5.527 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.07192, allocations: 43.22 kB / 495.5 MB, free: 5.477 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002122/0.07213, allocations: 115 kB / 495.7 MB, free: 5.363 MB / 394.7 MB Notification: Performance of pre-optimization done (n=71): time 1.834e-06/0.07213, allocations: 0 / 495.7 MB, free: 5.363 MB / 394.7 MB Notification: Performance of matching and sorting (n=95): time 0.008453/0.08058, allocations: 4.559 MB / 0.4885 GB, free: 0.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.08063, allocations: 119.8 kB / 0.4886 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.08163, allocations: 1.544 MB / 0.4901 GB, free: 15.05 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.594e-05/0.08168, allocations: 41.7 kB / 0.4902 GB, free: 15 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000353/0.08203, allocations: 0.9123 MB / 0.491 GB, free: 14.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.0822, allocations: 361 kB / 0.4914 GB, free: 13.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002811/0.08248, allocations: 355.3 kB / 0.4917 GB, free: 13.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.033e-05/0.08254, allocations: 305.1 kB / 0.492 GB, free: 13.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00061/0.08315, allocations: 0.6325 MB / 0.4926 GB, free: 12.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008694/0.08402, allocations: 1.345 MB / 0.4939 GB, free: 10.76 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001702/0.08572, allocations: 1.937 MB / 0.4958 GB, free: 8.492 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.08573, allocations: 8 kB / 0.4958 GB, free: 8.484 MB / 410.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.002803/0.08853, allocations: 2.39 MB / 0.4982 GB, free: 6.074 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.08855, allocations: 16 kB / 0.4982 GB, free: 6.059 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.08857, allocations: 24.47 kB / 0.4982 GB, free: 6.035 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.08961, allocations: 374.8 kB / 0.4986 GB, free: 5.656 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.09083, allocations: 0.5694 MB / 0.4991 GB, free: 5.086 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004525/0.09535, allocations: 7.455 MB / 0.5064 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005365/0.09589, allocations: 84.05 kB / 0.5065 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.291e-05/0.09598, allocations: 104 kB / 0.5066 GB, free: 12.94 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003564/0.09634, allocations: 369.7 kB / 0.5069 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.09647, allocations: 135 kB / 0.5071 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002476/0.09895, allocations: 1.527 MB / 0.5086 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.09895, allocations: 12 kB / 0.5086 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.09895, allocations: 3.938 kB / 0.5086 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.09896, allocations: 3.984 kB / 0.5086 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003332/0.1023, allocations: 2.827 MB / 0.5113 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.1023, allocations: 12.03 kB / 0.5114 GB, free: 7.859 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003965/0.1027, allocations: 215.7 kB / 0.5116 GB, free: 7.648 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.1038, allocations: 400.5 kB / 0.5119 GB, free: 7.238 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.81e-05/0.1038, allocations: 43.98 kB / 0.512 GB, free: 7.195 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00419/0.108, allocations: 7.244 MB / 0.5191 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.108, allocations: 19.94 kB / 0.5191 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002379/0.1104, allocations: 2.152 MB / 0.5212 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.1105, allocations: 131.1 kB / 0.5213 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.607e-05/0.1106, allocations: 32 kB / 0.5213 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003252/0.1109, allocations: 24 kB / 0.5214 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.111, allocations: 116.3 kB / 0.5215 GB, free: 12.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.557e-05/0.1111, allocations: 48.12 kB / 0.5215 GB, free: 12.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009099/0.112, allocations: 1.036 MB / 0.5225 GB, free: 11.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.112, allocations: 0 / 0.5225 GB, free: 11.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001419/0.1134, allocations: 0.826 MB / 0.5233 GB, free: 10.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003402/0.1168, allocations: 3.529 MB / 0.5268 GB, free: 7.258 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001695/0.1185, allocations: 1.699 MB / 0.5284 GB, free: 5.539 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1185, allocations: 192 / 0.5284 GB, free: 5.539 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008919/0.1194, allocations: 0.9605 MB / 0.5294 GB, free: 4.523 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007593/0.1202, allocations: 230.8 kB / 0.5296 GB, free: 4.305 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/0.1319, allocations: 13.33 MB / 0.5426 GB, free: 5.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.1323, allocations: 0.6332 MB / 0.5432 GB, free: 5.262 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005583/0.1329, allocations: 330.5 kB / 0.5436 GB, free: 4.934 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005139/0.1334, allocations: 0.6604 MB / 0.5442 GB, free: 4.273 MB / 458.7 MB Notification: Performance of SimCode: time 3.91e-07/0.1334, allocations: 0 / 0.5442 GB, free: 4.273 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1858/0.3192, allocations: 42.49 MB / 0.5857 GB, free: 148.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.482/8.801, allocations: 7.219 kB / 0.5857 GB, free: 148.9 MB / 490.7 MB " [Timeout remaining time 651] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.586614984087646] Failed to read output from testmodel.py, exit status != 0: 9.046958457678556 8.918727626 8.86568613 Calling exit ...