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.001378/0.001378, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001412/0.001412, allocations: 218.8 kB / 22.25 MB, free: 5.105 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.387/1.387, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1348/0.1348, allocations: 23.93 MB / 336.3 MB, free: 10.91 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.001931/0.001931, allocations: 71.84 kB / 471.2 MB, free: 7.445 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.3004, allocations: 59.87 MB / 0.5186 GB, free: 9.457 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.07185/0.3722, allocations: 29.82 MB / 0.5477 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03277/0.405, allocations: 25.31 MB / 0.5724 GB, free: 2.699 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.4067, allocations: 31.75 kB / 0.5725 GB, free: 2.668 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00174/0.4084, allocations: 0.593 MB / 0.573 GB, free: 2.07 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00637/0.4148, allocations: 2.161 MB / 0.5752 GB, free: 15.89 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01076/0.4255, allocations: 3.934 MB / 0.579 GB, free: 11.94 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005033/0.4306, allocations: 2.848 MB / 0.5818 GB, free: 9.078 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002345/0.4329, allocations: 1.373 MB / 0.5831 GB, free: 7.656 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00222/0.4351, allocations: 1.344 MB / 0.5844 GB, free: 6.309 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002687/0.4378, allocations: 1.499 MB / 0.5859 GB, free: 4.805 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004829/0.4383, allocations: 260 kB / 0.5861 GB, free: 4.551 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009077/0.4474, allocations: 3.03 MB / 0.5891 GB, free: 1.516 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006984/0.4481, allocations: 0.6114 MB / 0.5897 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00132/0.4494, allocations: 1.093 MB / 0.5908 GB, free: 15.8 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.4609, allocations: 6.186 MB / 0.5968 GB, free: 9.594 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.146e-05/0.4609, allocations: 4 kB / 0.5968 GB, free: 9.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4609, allocations: 0 / 0.5968 GB, free: 9.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.529e-05/0.461, allocations: 3.938 kB / 0.5968 GB, free: 9.586 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.006346/0.4674, allocations: 3.08 MB / 0.5998 GB, free: 6.453 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.4674, allocations: 8.031 kB / 0.5998 GB, free: 6.445 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000372/0.4678, allocations: 308.3 kB / 0.6001 GB, free: 6.133 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002351/0.4701, allocations: 0.5609 MB / 0.6007 GB, free: 5.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002511/0.4726, allocations: 1.246 MB / 0.6019 GB, free: 4.285 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002434/0.4729, allocations: 287.2 kB / 0.6022 GB, free: 3.977 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003864/0.4733, allocations: 220 kB / 0.6024 GB, free: 3.762 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004366/0.4776, allocations: 2.675 MB / 0.605 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.442e-05/0.4777, allocations: 7.938 kB / 0.605 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002148/0.4779, allocations: 88 kB / 0.6051 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-05/0.4779, allocations: 59.94 kB / 0.6051 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005298/0.4832, allocations: 3.287 MB / 0.6084 GB, free: 13.55 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.01367/0.4969, allocations: 7.255 MB / 0.6154 GB, free: 6.145 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002519/0.4994, allocations: 1.52 MB / 0.6169 GB, free: 4.621 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.5007, allocations: 0.8547 MB / 0.6178 GB, free: 3.754 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/0.5111, allocations: 4.289 MB / 0.6219 GB, free: 15.44 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.5112, allocations: 43.88 kB / 0.622 GB, free: 15.39 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.276e-06/0.5112, allocations: 0 / 0.622 GB, free: 15.39 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03256/0.5437, allocations: 8.118 MB / 0.6299 GB, free: 7.215 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.46e-05/0.5438, allocations: 95.11 kB / 0.63 GB, free: 7.102 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001805/0.5456, allocations: 1.42 MB / 0.6314 GB, free: 5.664 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001698/0.5458, allocations: 53.7 kB / 0.6314 GB, free: 5.605 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007801/0.5466, allocations: 1.081 MB / 0.6325 GB, free: 4.512 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005852/0.5472, allocations: 0.6585 MB / 0.6331 GB, free: 3.848 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007087/0.5479, allocations: 485 kB / 0.6336 GB, free: 3.367 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.548, allocations: 305.1 kB / 0.6339 GB, free: 3.066 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.5494, allocations: 0.821 MB / 0.6347 GB, free: 2.242 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/0.5515, allocations: 1.658 MB / 0.6363 GB, free: 204 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003692/0.5552, allocations: 2.618 MB / 0.6389 GB, free: 13.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.632e-05/0.5552, allocations: 8 kB / 0.6389 GB, free: 13.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006957/0.5621, allocations: 3.058 MB / 0.6419 GB, free: 10.12 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.8e-05/0.5622, allocations: 16 kB / 0.6419 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.632e-05/0.5622, allocations: 28 kB / 0.6419 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00335/0.5656, allocations: 0.5106 MB / 0.6424 GB, free: 9.551 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003771/0.5693, allocations: 0.8036 MB / 0.6432 GB, free: 8.746 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009152/0.5785, allocations: 7.604 MB / 0.6506 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/0.5804, allocations: 99.97 kB / 0.6507 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000258/0.5806, allocations: 147.9 kB / 0.6509 GB, free: 400 kB / 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.0009556/0.5816, allocations: 449 kB / 0.6513 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003935/0.582, allocations: 170.9 kB / 0.6514 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006914/0.5889, allocations: 2.574 MB / 0.654 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.12e-05/0.5889, allocations: 20 kB / 0.654 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5889, allocations: 0 / 0.654 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.326e-05/0.5889, allocations: 15.95 kB / 0.654 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/0.5993, allocations: 4.47 MB / 0.6584 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/0.5994, allocations: 12 kB / 0.6584 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.601, allocations: 419.4 kB / 0.6588 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003608/0.6046, allocations: 0.547 MB / 0.6593 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001983/0.6048, allocations: 83.97 kB / 0.6594 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008815/0.6137, allocations: 7.388 MB / 0.6666 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.538e-05/0.6137, allocations: 15.94 kB / 0.6666 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007434/0.6211, allocations: 3.466 MB / 0.67 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004837/0.6216, allocations: 170.8 kB / 0.6702 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002642/0.6219, allocations: 55.98 kB / 0.6702 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.6229, allocations: 48 kB / 0.6703 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003198/0.6232, allocations: 200.6 kB / 0.6705 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001758/0.6234, allocations: 95.97 kB / 0.6705 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001157/0.6246, allocations: 0.8967 MB / 0.6714 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6246, allocations: 0 / 0.6714 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00403/0.6286, allocations: 1.219 MB / 0.6726 GB, free: 9.113 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.01036/0.639, allocations: 5.25 MB / 0.6777 GB, free: 3.664 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005089/0.6441, allocations: 2.358 MB / 0.68 GB, free: 1.285 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/0.6441, allocations: 8.438 kB / 0.68 GB, free: 1.277 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002178/0.6462, allocations: 1.371 MB / 0.6814 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001961/0.6482, allocations: 344.9 kB / 0.6817 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02969/0.6779, allocations: 16.99 MB / 0.6983 GB, free: 13.16 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009526/0.6788, allocations: 0.8617 MB / 0.6992 GB, free: 12.26 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001545/0.6804, allocations: 458.3 kB / 0.6996 GB, free: 11.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001343/0.6817, allocations: 0.9717 MB / 0.7005 GB, free: 10.83 MB / 0.545 GB Notification: Performance of SimCode: time 8.51e-07/0.6817, allocations: 3.938 kB / 0.7005 GB, free: 10.83 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3685/1.05, allocations: 61.01 MB / 0.7601 GB, free: 166.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.78/15.83, allocations: 3.125 kB / 0.7601 GB, free: 166.5 MB / 0.5606 GB " [Timeout remaining time 644] (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 os._exit(0), Time elapsed: 18.43371410598047] Failed to read output from testmodel.py, exit status != 0: 15.988400866015581 16.005913665 15.541724319 Calling exit ...