Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.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.001339/0.001339, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001572/0.001572, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.439/1.439, allocations: 230.6 MB / 256 MB, free: 7.801 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.1395/0.1395, allocations: 23.89 MB / 336.3 MB, free: 10.96 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.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell",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.002651/0.002651, allocations: 67.89 kB / 471.1 MB, free: 7.512 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3109, allocations: 59.86 MB / 0.5185 GB, free: 9.594 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.ElectrochemicalCell): time 0.07224/0.3832, allocations: 29.94 MB / 0.5478 GB, free: 9.973 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03434/0.4175, allocations: 25.29 MB / 0.5725 GB, free: 2.625 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001988/0.4195, allocations: 31.75 kB / 0.5725 GB, free: 2.594 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00194/0.4214, allocations: 0.6008 MB / 0.5731 GB, free: 1.988 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006916/0.4283, allocations: 2.169 MB / 0.5752 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01094/0.4393, allocations: 3.922 MB / 0.579 GB, free: 11.86 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004362/0.4437, allocations: 2.852 MB / 0.5818 GB, free: 8.996 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001749/0.4454, allocations: 1.342 MB / 0.5831 GB, free: 7.605 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001566/0.447, allocations: 1.348 MB / 0.5844 GB, free: 6.254 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001864/0.4488, allocations: 1.331 MB / 0.5857 GB, free: 4.918 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004199/0.4493, allocations: 260 kB / 0.586 GB, free: 4.664 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007497/0.4567, allocations: 2.956 MB / 0.5889 GB, free: 1.703 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006975/0.4574, allocations: 0.6075 MB / 0.5895 GB, free: 1.094 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001348/0.4588, allocations: 1.097 MB / 0.5905 GB, free: 15.99 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.4707, allocations: 6.182 MB / 0.5966 GB, free: 9.785 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4707, allocations: 4 kB / 0.5966 GB, free: 9.781 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4707, allocations: 4 kB / 0.5966 GB, free: 9.777 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.31e-05/0.4708, allocations: 0 / 0.5966 GB, free: 9.777 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.00623/0.477, allocations: 3.076 MB / 0.5996 GB, free: 6.648 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.477, allocations: 8.031 kB / 0.5996 GB, free: 6.641 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003769/0.4774, allocations: 304.3 kB / 0.5999 GB, free: 6.332 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002249/0.4797, allocations: 0.5609 MB / 0.6004 GB, free: 5.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002501/0.4822, allocations: 1.246 MB / 0.6017 GB, free: 4.484 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/0.4824, allocations: 283.3 kB / 0.6019 GB, free: 4.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003919/0.4828, allocations: 228 kB / 0.6021 GB, free: 3.957 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004499/0.4873, allocations: 2.679 MB / 0.6048 GB, free: 1.188 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.502e-05/0.4874, allocations: 4 kB / 0.6048 GB, free: 1.184 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002132/0.4876, allocations: 92 kB / 0.6049 GB, free: 1.094 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-05/0.4876, allocations: 56 kB / 0.6049 GB, free: 1.039 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005406/0.493, allocations: 3.295 MB / 0.6081 GB, free: 13.74 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.01466/0.5077, allocations: 7.248 MB / 0.6152 GB, free: 6.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002752/0.5104, allocations: 1.527 MB / 0.6167 GB, free: 4.809 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.5119, allocations: 0.8547 MB / 0.6175 GB, free: 3.941 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01065/0.5225, allocations: 4.293 MB / 0.6217 GB, free: 15.62 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.5226, allocations: 43.88 kB / 0.6218 GB, free: 15.57 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.486e-06/0.5226, allocations: 0 / 0.6218 GB, free: 15.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.0323/0.5549, allocations: 8.119 MB / 0.6297 GB, free: 7.398 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/0.555, allocations: 99.05 kB / 0.6298 GB, free: 7.281 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002059/0.557, allocations: 1.424 MB / 0.6312 GB, free: 5.84 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001516/0.5572, allocations: 53.7 kB / 0.6312 GB, free: 5.781 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008886/0.5581, allocations: 1.077 MB / 0.6323 GB, free: 4.691 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006983/0.5588, allocations: 0.6585 MB / 0.6329 GB, free: 4.027 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008192/0.5596, allocations: 481 kB / 0.6334 GB, free: 3.551 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5597, allocations: 309.1 kB / 0.6337 GB, free: 3.246 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.5614, allocations: 0.8132 MB / 0.6345 GB, free: 2.43 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002397/0.5638, allocations: 1.665 MB / 0.6361 GB, free: 388 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004248/0.568, allocations: 2.614 MB / 0.6386 GB, free: 13.39 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.259e-05/0.568, allocations: 8 kB / 0.6387 GB, free: 13.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007614/0.5756, allocations: 3.05 MB / 0.6416 GB, free: 10.31 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.5757, allocations: 20.28 kB / 0.6417 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.068e-05/0.5757, allocations: 32 kB / 0.6417 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003297/0.579, allocations: 0.5143 MB / 0.6422 GB, free: 9.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003848/0.5829, allocations: 0.7997 MB / 0.643 GB, free: 8.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009784/0.5927, allocations: 7.6 MB / 0.6504 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/0.5945, allocations: 96.12 kB / 0.6505 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004072/0.5949, allocations: 147.9 kB / 0.6506 GB, free: 0.582 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * 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,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001105/0.596, allocations: 452.9 kB / 0.6511 GB, free: 132 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005306/0.5966, allocations: 171.1 kB / 0.6512 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007384/0.604, allocations: 2.57 MB / 0.6537 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.928e-05/0.604, allocations: 23.94 kB / 0.6537 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/0.604, allocations: 3.984 kB / 0.6538 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-05/0.604, allocations: 11.97 kB / 0.6538 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/0.6164, allocations: 4.454 MB / 0.6581 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.212e-05/0.6165, allocations: 12 kB / 0.6581 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/0.6183, allocations: 423.4 kB / 0.6585 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003378/0.6217, allocations: 0.5628 MB / 0.6591 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002656/0.6219, allocations: 75.97 kB / 0.6592 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009079/0.631, allocations: 7.384 MB / 0.6664 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.475e-05/0.631, allocations: 15.94 kB / 0.6664 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007804/0.6388, allocations: 3.47 MB / 0.6698 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000512/0.6394, allocations: 174.8 kB / 0.6699 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003584/0.6397, allocations: 59.98 kB / 0.67 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.6409, allocations: 44 kB / 0.67 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003791/0.6413, allocations: 204.6 kB / 0.6702 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/0.6415, allocations: 95.95 kB / 0.6703 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001456/0.643, allocations: 0.9006 MB / 0.6712 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.643, allocations: 0 / 0.6712 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003965/0.647, allocations: 1.212 MB / 0.6724 GB, free: 9.301 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * 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,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01103/0.658, allocations: 5.228 MB / 0.6775 GB, free: 3.871 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005358/0.6633, allocations: 2.369 MB / 0.6798 GB, free: 1.48 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.462e-05/0.6634, allocations: 4 kB / 0.6798 GB, free: 1.477 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002391/0.6658, allocations: 1.372 MB / 0.6811 GB, free: 56 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002342/0.6681, allocations: 352.3 kB / 0.6815 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03488/0.703, allocations: 17 MB / 0.6981 GB, free: 13.35 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/0.7043, allocations: 0.8617 MB / 0.6989 GB, free: 12.45 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001869/0.7062, allocations: 458.4 kB / 0.6994 GB, free: 12 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001577/0.7078, allocations: 0.9678 MB / 0.7003 GB, free: 11.03 MB / 0.545 GB Notification: Performance of SimCode: time 1.142e-06/0.7078, allocations: 4 kB / 0.7003 GB, free: 11.02 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3224/1.03, allocations: 60.2 MB / 0.7591 GB, free: 167 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.74/16.77, allocations: 7.766 kB / 0.7591 GB, free: 167 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.50213518925011] Failed to read output from testmodel.py, exit status != 0: 16.93099967064336 16.950704514 16.475930299 Calling exit ...