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.0007748/0.0007748, 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.0008457/0.0008457, allocations: 170.3 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.8701/0.8701, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.08635/0.08635, allocations: 17.37 MB / 276.6 MB, free: 11.85 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 411.4 MB, free: 428 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.034e-05, allocations: 2.281 kB / 411.5 MB, free: 424 kB / 378.7 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.02594/0.02596, allocations: 30.17 MB / 441.6 MB, free: 2.305 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1678/0.1937, allocations: 25.29 MB / 466.9 MB, free: 48.58 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001644/0.1954, allocations: 31.44 kB / 466.9 MB, free: 48.57 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001667/0.1971, allocations: 0.6103 MB / 467.5 MB, free: 48.24 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005206/0.2023, allocations: 2.231 MB / 469.8 MB, free: 46.9 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00798/0.2102, allocations: 4.047 MB / 473.8 MB, free: 44.52 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002835/0.2131, allocations: 2.944 MB / 476.8 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001459/0.2145, allocations: 1.352 MB / 478.1 MB, free: 42.36 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002076/0.2166, allocations: 1.898 MB / 480 MB, free: 41.64 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001472/0.2181, allocations: 1.191 MB / 481.2 MB, free: 41.32 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004514/0.2185, allocations: 259.2 kB / 481.5 MB, free: 41.32 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006157/0.2247, allocations: 2.98 MB / 484.4 MB, free: 40.65 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007889/0.2255, allocations: 0.6089 MB / 485.1 MB, free: 40.25 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.2268, allocations: 0.9419 MB / 486 MB, free: 39.85 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.2376, allocations: 6.547 MB / 492.5 MB, free: 37.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.2376, allocations: 1.312 kB / 492.5 MB, free: 37.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.2376, allocations: 0 / 492.5 MB, free: 37.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.823e-05/0.2377, allocations: 3.281 kB / 492.5 MB, free: 37.07 MB / 410.7 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.005937/0.2437, allocations: 3.063 MB / 495.6 MB, free: 35.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.2437, allocations: 10.52 kB / 495.6 MB, free: 35.31 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003305/0.2441, allocations: 303.4 kB / 495.9 MB, free: 35.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001589/0.2456, allocations: 0.5544 MB / 496.5 MB, free: 34.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002309/0.248, allocations: 1.243 MB / 497.7 MB, free: 34.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000195/0.2481, allocations: 275 kB / 498 MB, free: 34.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005144/0.2487, allocations: 226.1 kB / 498.2 MB, free: 33.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004175/0.2528, allocations: 2.683 MB / 0.4891 GB, free: 32.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.663e-05/0.2529, allocations: 3.938 kB / 0.4892 GB, free: 32.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001696/0.253, allocations: 89.67 kB / 0.4892 GB, free: 32.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-05/0.2531, allocations: 53.41 kB / 0.4893 GB, free: 32.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004858/0.2579, allocations: 3.292 MB / 0.4925 GB, free: 31.83 MB / 410.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.01144/0.2694, allocations: 7.262 MB / 0.4996 GB, free: 27.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001787/0.2712, allocations: 1.519 MB / 0.5011 GB, free: 27.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009286/0.2721, allocations: 0.8479 MB / 0.5019 GB, free: 26.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006422/0.2785, allocations: 4.283 MB / 0.5061 GB, free: 24.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.2785, allocations: 53.27 kB / 0.5061 GB, free: 24.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 3.066e-06/0.2785, allocations: 0 / 0.5061 GB, free: 24.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=181): time 0.01568/0.2942, allocations: 8.116 MB / 0.5141 GB, free: 16.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.2943, allocations: 99.11 kB / 0.5142 GB, free: 16.13 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001286/0.2956, allocations: 1.412 MB / 0.5155 GB, free: 14.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002189/0.2958, allocations: 57.7 kB / 0.5156 GB, free: 14.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003228/0.2961, allocations: 1.076 MB / 0.5166 GB, free: 13.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003658/0.2965, allocations: 0.6507 MB / 0.5173 GB, free: 12.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004188/0.2969, allocations: 477.1 kB / 0.5177 GB, free: 12.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.528e-05/0.2969, allocations: 302.1 kB / 0.518 GB, free: 12.13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008214/0.2977, allocations: 0.8171 MB / 0.5188 GB, free: 11.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/0.2988, allocations: 1.669 MB / 0.5205 GB, free: 9.254 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002088/0.3009, allocations: 2.61 MB / 0.523 GB, free: 6.305 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.715e-05/0.3009, allocations: 8 kB / 0.523 GB, free: 6.297 MB / 410.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.003796/0.3047, allocations: 3.059 MB / 0.526 GB, free: 3.246 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.3047, allocations: 16 kB / 0.526 GB, free: 3.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.143e-05/0.3047, allocations: 28 kB / 0.526 GB, free: 3.203 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/0.3062, allocations: 0.5169 MB / 0.5265 GB, free: 2.684 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001839/0.308, allocations: 0.8062 MB / 0.5273 GB, free: 1.887 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005355/0.3134, allocations: 7.592 MB / 0.5347 GB, free: 9.809 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.3148, allocations: 98.59 kB / 0.5348 GB, free: 9.715 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002425/0.3151, allocations: 144 kB / 0.535 GB, free: 9.574 MB / 426.7 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.0007988/0.3159, allocations: 459.4 kB / 0.5354 GB, free: 9.117 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003183/0.3162, allocations: 177.6 kB / 0.5356 GB, free: 8.945 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004049/0.3202, allocations: 2.56 MB / 0.5381 GB, free: 6.441 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.3202, allocations: 16 kB / 0.5381 GB, free: 6.426 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.3202, allocations: 4 kB / 0.5381 GB, free: 6.422 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.956e-05/0.3203, allocations: 15.89 kB / 0.5381 GB, free: 6.406 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006539/0.3268, allocations: 4.47 MB / 0.5425 GB, free: 1.723 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.3268, allocations: 12 kB / 0.5425 GB, free: 1.711 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009049/0.3277, allocations: 424.6 kB / 0.5429 GB, free: 1.301 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001615/0.3293, allocations: 0.5495 MB / 0.5434 GB, free: 0.7422 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/0.3295, allocations: 79.97 kB / 0.5435 GB, free: 0.6641 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0052/0.3347, allocations: 7.381 MB / 0.5507 GB, free: 8.789 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.3347, allocations: 15.94 kB / 0.5507 GB, free: 8.773 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004453/0.3392, allocations: 3.445 MB / 0.5541 GB, free: 5.152 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005117/0.3397, allocations: 178.8 kB / 0.5543 GB, free: 4.977 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/0.3399, allocations: 55.98 kB / 0.5543 GB, free: 4.922 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005774/0.3405, allocations: 46.69 kB / 0.5544 GB, free: 4.879 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002254/0.3407, allocations: 209.3 kB / 0.5546 GB, free: 4.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.3408, allocations: 91.97 kB / 0.5547 GB, free: 4.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008204/0.3416, allocations: 0.9006 MB / 0.5555 GB, free: 3.688 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3416, allocations: 0 / 0.5555 GB, free: 3.688 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003549/0.3452, allocations: 1.216 MB / 0.5567 GB, free: 2.469 MB / 442.7 MB 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.007493/0.3527, allocations: 5.257 MB / 0.5619 GB, free: 13.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003518/0.3562, allocations: 2.362 MB / 0.5642 GB, free: 10.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/0.3562, allocations: 0 / 0.5642 GB, free: 10.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0017/0.3579, allocations: 1.367 MB / 0.5655 GB, free: 9.316 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.3596, allocations: 346.8 kB / 0.5658 GB, free: 9.008 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02096/0.3805, allocations: 16.85 MB / 0.5823 GB, free: 6.906 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006769/0.3812, allocations: 0.8605 MB / 0.5831 GB, free: 6.035 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00122/0.3824, allocations: 470.3 kB / 0.5836 GB, free: 5.68 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/0.3834, allocations: 0.9625 MB / 0.5845 GB, free: 4.723 MB / 474.7 MB Notification: Performance of SimCode: time 1.493e-06/0.3834, allocations: 0 / 0.5845 GB, free: 4.723 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2304/0.6139, allocations: 60.38 MB / 0.6435 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.87, allocations: 6.281 kB / 0.6435 GB, free: 123.5 MB / 0.4948 GB " [Timeout remaining time 649] (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: 12.697308722883463] Failed to read output from testmodel.py, exit status != 0: 10.986573868431151 11.000368833 10.760242783 Calling exit ...