Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001464/0.001464, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001602/0.001602, allocations: 219.8 kB / 22.26 MB, free: 5.125 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.382/1.382, allocations: 230.6 MB / 256 MB, free: 7.984 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.1323/0.1323, allocations: 23.91 MB / 336.3 MB, free: 11.24 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.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_master_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.001937/0.001937, allocations: 67.91 kB / 471.2 MB, free: 7.656 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2956, allocations: 59.88 MB / 0.5187 GB, free: 9.566 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.ElectrochemicalCell): time 0.04067/0.3363, allocations: 31.06 MB / 0.549 GB, free: 8.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03704/0.3733, allocations: 28.92 MB / 0.5772 GB, free: 14.05 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001926/0.3753, allocations: 31.75 kB / 0.5773 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002312/0.3776, allocations: 0.6591 MB / 0.5779 GB, free: 13.35 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006997/0.3846, allocations: 2.22 MB / 0.5801 GB, free: 11.12 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01154/0.3961, allocations: 3.93 MB / 0.5839 GB, free: 7.164 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0049/0.401, allocations: 2.848 MB / 0.5867 GB, free: 4.305 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002318/0.4033, allocations: 1.361 MB / 0.588 GB, free: 2.895 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002239/0.4056, allocations: 1.344 MB / 0.5893 GB, free: 1.547 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002641/0.4082, allocations: 1.506 MB / 0.5908 GB, free: 36 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008335/0.409, allocations: 264 kB / 0.591 GB, free: 15.77 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009308/0.4183, allocations: 3.144 MB / 0.5941 GB, free: 12.63 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009988/0.4193, allocations: 0.5998 MB / 0.5947 GB, free: 12.03 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002188/0.4215, allocations: 1.311 MB / 0.596 GB, free: 10.71 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01364/0.4352, allocations: 6.198 MB / 0.602 GB, free: 4.488 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.4352, allocations: 0 / 0.602 GB, free: 4.488 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4352, allocations: 3.938 kB / 0.602 GB, free: 4.484 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001192/0.4353, allocations: 0 / 0.602 GB, free: 4.484 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.007171/0.4425, allocations: 3.088 MB / 0.6051 GB, free: 1.344 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.4425, allocations: 16.03 kB / 0.6051 GB, free: 1.328 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005732/0.4431, allocations: 304.3 kB / 0.6054 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002473/0.4456, allocations: 0.5531 MB / 0.6059 GB, free: 476 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002776/0.4483, allocations: 1.25 MB / 0.6071 GB, free: 15.17 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/0.4486, allocations: 283.3 kB / 0.6074 GB, free: 14.87 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000544/0.4492, allocations: 220 kB / 0.6076 GB, free: 14.65 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00535/0.4545, allocations: 2.679 MB / 0.6102 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.937e-05/0.4546, allocations: 0 / 0.6102 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002772/0.4548, allocations: 88 kB / 0.6103 GB, free: 11.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.903e-05/0.4549, allocations: 55.94 kB / 0.6104 GB, free: 11.74 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005762/0.4607, allocations: 3.326 MB / 0.6136 GB, free: 8.414 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.01632/0.477, allocations: 8.599 MB / 0.622 GB, free: 15.47 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/0.4798, allocations: 1.535 MB / 0.6235 GB, free: 13.94 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.4812, allocations: 0.8547 MB / 0.6243 GB, free: 13.07 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.4917, allocations: 4.542 MB / 0.6288 GB, free: 8.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.973e-05/0.4917, allocations: 47.88 kB / 0.6288 GB, free: 8.445 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.185e-06/0.4917, allocations: 0 / 0.6288 GB, free: 8.445 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03074/0.5225, allocations: 8.119 MB / 0.6367 GB, free: 276 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.5226, allocations: 95.11 kB / 0.6368 GB, free: 160 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/0.5244, allocations: 1.37 MB / 0.6382 GB, free: 14.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002076/0.5246, allocations: 53.7 kB / 0.6382 GB, free: 14.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008118/0.5254, allocations: 1.081 MB / 0.6393 GB, free: 13.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006461/0.5261, allocations: 0.6585 MB / 0.6399 GB, free: 12.95 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000689/0.5268, allocations: 481.1 kB / 0.6404 GB, free: 12.48 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.5269, allocations: 305.1 kB / 0.6407 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/0.5283, allocations: 0.8171 MB / 0.6415 GB, free: 11.36 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002188/0.5305, allocations: 1.658 MB / 0.6431 GB, free: 9.312 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003861/0.5343, allocations: 2.618 MB / 0.6456 GB, free: 6.316 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.805e-05/0.5344, allocations: 8 kB / 0.6457 GB, free: 6.309 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007023/0.5414, allocations: 3.058 MB / 0.6486 GB, free: 3.23 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.899e-05/0.5414, allocations: 20 kB / 0.6487 GB, free: 3.211 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.885e-05/0.5415, allocations: 24 kB / 0.6487 GB, free: 3.188 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003234/0.5447, allocations: 0.5107 MB / 0.6492 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003632/0.5483, allocations: 0.8036 MB / 0.65 GB, free: 1.859 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009327/0.5577, allocations: 7.639 MB / 0.6574 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.5595, allocations: 87.91 kB / 0.6575 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003404/0.5598, allocations: 151.9 kB / 0.6577 GB, free: 9.477 MB / 0.4981 GB 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.0009719/0.5608, allocations: 453.6 kB / 0.6581 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004311/0.5612, allocations: 178.8 kB / 0.6583 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006734/0.568, allocations: 2.566 MB / 0.6608 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/0.568, allocations: 20 kB / 0.6608 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.568, allocations: 4 kB / 0.6608 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-05/0.568, allocations: 15.89 kB / 0.6608 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/0.5785, allocations: 4.722 MB / 0.6654 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.827e-05/0.5786, allocations: 12 kB / 0.6654 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001686/0.5802, allocations: 424.1 kB / 0.6658 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003352/0.5836, allocations: 0.5508 MB / 0.6664 GB, free: 268 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002406/0.5838, allocations: 83.97 kB / 0.6664 GB, free: 184 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008838/0.5927, allocations: 7.419 MB / 0.6737 GB, free: 8.242 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.456e-05/0.5927, allocations: 19.94 kB / 0.6737 GB, free: 8.223 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007331/0.6, allocations: 3.47 MB / 0.6771 GB, free: 4.574 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004895/0.6005, allocations: 182.7 kB / 0.6773 GB, free: 4.395 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00028/0.6008, allocations: 55.98 kB / 0.6773 GB, free: 4.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009791/0.6018, allocations: 48 kB / 0.6774 GB, free: 4.293 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000316/0.6021, allocations: 200.6 kB / 0.6776 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001682/0.6023, allocations: 95.97 kB / 0.6777 GB, free: 4 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00123/0.6035, allocations: 0.8967 MB / 0.6785 GB, free: 3.102 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6035, allocations: 0 / 0.6785 GB, free: 3.102 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003842/0.6073, allocations: 1.219 MB / 0.6797 GB, free: 1.879 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.01002/0.6173, allocations: 5.23 MB / 0.6848 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004971/0.6223, allocations: 2.369 MB / 0.6871 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/0.6223, allocations: 5 kB / 0.6871 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002249/0.6246, allocations: 1.367 MB / 0.6885 GB, free: 8.637 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00196/0.6265, allocations: 358.4 kB / 0.6888 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03137/0.6579, allocations: 16.99 MB / 0.7054 GB, free: 5.938 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001311/0.6592, allocations: 1.436 MB / 0.7068 GB, free: 4.465 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001663/0.6609, allocations: 462.3 kB / 0.7073 GB, free: 4.008 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/0.6623, allocations: 0.9717 MB / 0.7082 GB, free: 3.035 MB / 0.545 GB Notification: Performance of SimCode: time 1.122e-06/0.6623, allocations: 0 / 0.7082 GB, free: 3.035 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3109/0.9732, allocations: 60.7 MB / 0.7675 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.68/19.65, allocations: 2.312 kB / 0.7675 GB, free: 156.6 MB / 0.5606 GB " [Timeout remaining time 640] (rm -f Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.32350750709884] Failed to read output from testmodel.py, exit status != 0: 19.800514966016635 19.818220915 19.379305748 Calling exit ...