Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.001279/0.001279, allocations: 99.75 kB / 18.94 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.001532/0.001532, allocations: 220.5 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.385/1.385, allocations: 230.6 MB / 256 MB, free: 7.797 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.1359/0.1359, allocations: 23.92 MB / 336.4 MB, free: 10.92 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.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",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.002021/0.002021, allocations: 71.89 kB / 471.2 MB, free: 7.441 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3149, allocations: 59.87 MB / 0.5186 GB, free: 9.527 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.CheckSubstancesData.StandardElectrochemicalCell2): time 0.06984/0.3848, allocations: 27.06 MB / 0.545 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02151/0.4063, allocations: 16.05 MB / 0.5607 GB, free: 13.92 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.4074, allocations: 27.75 kB / 0.5607 GB, free: 13.89 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.4086, allocations: 427.8 kB / 0.5611 GB, free: 13.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002327/0.411, allocations: 0.8096 MB / 0.5619 GB, free: 12.88 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007979/0.419, allocations: 2.855 MB / 0.5647 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002741/0.4217, allocations: 1.634 MB / 0.5663 GB, free: 8.953 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009565/0.4226, allocations: 0.7312 MB / 0.567 GB, free: 8.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007762/0.4234, allocations: 0.7284 MB / 0.5677 GB, free: 7.469 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001085/0.4245, allocations: 0.8134 MB / 0.5685 GB, free: 6.652 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001983/0.4247, allocations: 144 kB / 0.5687 GB, free: 6.512 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004792/0.4295, allocations: 1.712 MB / 0.5704 GB, free: 4.797 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003741/0.4299, allocations: 362.8 kB / 0.5707 GB, free: 4.441 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006954/0.4306, allocations: 0.6223 MB / 0.5713 GB, free: 3.816 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008757/0.4393, allocations: 3.579 MB / 0.5748 GB, free: 228 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4393, allocations: 0 / 0.5748 GB, free: 228 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4393, allocations: 0 / 0.5748 GB, free: 228 kB / 414.1 MB Notification: Performance of Transformations before backend: time 2.745e-05/0.4394, allocations: 3.984 kB / 0.5748 GB, free: 224 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.0033/0.4427, allocations: 1.889 MB / 0.5766 GB, free: 14.29 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.4427, allocations: 12.03 kB / 0.5767 GB, free: 14.27 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002296/0.4429, allocations: 177.8 kB / 0.5768 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001532/0.4445, allocations: 395.1 kB / 0.5772 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00174/0.4462, allocations: 0.9158 MB / 0.5781 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/0.4464, allocations: 201.3 kB / 0.5783 GB, free: 12.54 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002191/0.4466, allocations: 120 kB / 0.5784 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002636/0.4492, allocations: 1.668 MB / 0.58 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.925e-05/0.4493, allocations: 0 / 0.58 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/0.4494, allocations: 51.98 kB / 0.5801 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.082e-05/0.4494, allocations: 28 kB / 0.5801 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003244/0.4527, allocations: 2.1 MB / 0.5822 GB, free: 8.496 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008184/0.4609, allocations: 4.852 MB / 0.5869 GB, free: 3.516 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001351/0.4622, allocations: 0.6859 MB / 0.5876 GB, free: 2.805 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005921/0.4628, allocations: 332.4 kB / 0.5879 GB, free: 2.473 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006747/0.4696, allocations: 2.66 MB / 0.5905 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.4696, allocations: 42.5 kB / 0.5905 GB, free: 15.74 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003623/0.47, allocations: 79.19 kB / 0.5906 GB, free: 15.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.374e-06/0.47, allocations: 0 / 0.5906 GB, free: 15.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001523/0.4715, allocations: 0.616 MB / 0.5912 GB, free: 15.03 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/0.4716, allocations: 110.8 kB / 0.5913 GB, free: 14.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/0.4731, allocations: 1.249 MB / 0.5925 GB, free: 13.63 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.29e-05/0.4732, allocations: 33.7 kB / 0.5926 GB, free: 13.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006112/0.4738, allocations: 0.8023 MB / 0.5933 GB, free: 12.78 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.4739, allocations: 146.9 kB / 0.5935 GB, free: 12.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003513/0.4743, allocations: 270.7 kB / 0.5937 GB, free: 12.37 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.4744, allocations: 353.9 kB / 0.5941 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005244/0.475, allocations: 326.7 kB / 0.5944 GB, free: 11.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.4761, allocations: 1.058 MB / 0.5954 GB, free: 10.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.4777, allocations: 1.403 MB / 0.5968 GB, free: 8.508 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/0.4777, allocations: 8 kB / 0.5968 GB, free: 8.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.00228/0.48, allocations: 1.448 MB / 0.5982 GB, free: 7.039 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.4801, allocations: 23.97 kB / 0.5982 GB, free: 7.016 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-05/0.4801, allocations: 28 kB / 0.5983 GB, free: 6.988 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006166/0.4807, allocations: 157.3 kB / 0.5984 GB, free: 6.828 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.4818, allocations: 367.4 kB / 0.5988 GB, free: 6.469 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003178/0.485, allocations: 3.87 MB / 0.6025 GB, free: 2.312 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008473/0.4859, allocations: 76.16 kB / 0.6026 GB, free: 2.238 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.486, allocations: 91.98 kB / 0.6027 GB, free: 2.148 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004873/0.4865, allocations: 313.1 kB / 0.603 GB, free: 1.832 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/0.4867, allocations: 103.3 kB / 0.6031 GB, free: 1.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/0.4884, allocations: 0.8535 MB / 0.6039 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.4885, allocations: 7.984 kB / 0.6039 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.4885, allocations: 0 / 0.6039 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.4885, allocations: 4 kB / 0.6039 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.4905, allocations: 1.176 MB / 0.6051 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.4905, allocations: 4 kB / 0.6051 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002622/0.4908, allocations: 51.97 kB / 0.6052 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00075/0.4916, allocations: 183.4 kB / 0.6053 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.4916, allocations: 12 kB / 0.6053 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002983/0.4946, allocations: 3.733 MB / 0.609 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.4946, allocations: 12.03 kB / 0.609 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.4958, allocations: 0.8596 MB / 0.6098 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002175/0.496, allocations: 103.2 kB / 0.6099 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.4962, allocations: 11.98 kB / 0.6099 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/0.4966, allocations: 8 kB / 0.61 GB, free: 10.24 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.974e-05/0.4966, allocations: 39.83 kB / 0.61 GB, free: 10.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.265e-05/0.4967, allocations: 20.06 kB / 0.61 GB, free: 10.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001113/0.4978, allocations: 0.9005 MB / 0.6109 GB, free: 9.277 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4978, allocations: 0 / 0.6109 GB, free: 9.277 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001919/0.4997, allocations: 0.6228 MB / 0.6115 GB, free: 8.652 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002954/0.5027, allocations: 2.043 MB / 0.6135 GB, free: 6.551 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.5043, allocations: 0.7838 MB / 0.6143 GB, free: 5.773 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5043, allocations: 0 / 0.6143 GB, free: 5.773 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005262/0.5049, allocations: 382.4 kB / 0.6146 GB, free: 5.375 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.5059, allocations: 178.3 kB / 0.6148 GB, free: 5.207 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01235/0.5183, allocations: 9.67 MB / 0.6242 GB, free: 10.61 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005162/0.5188, allocations: 476.9 kB / 0.6247 GB, free: 10.11 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000811/0.5196, allocations: 279.4 kB / 0.625 GB, free: 9.855 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006387/0.5202, allocations: 495.2 kB / 0.6254 GB, free: 9.371 MB / 478.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5202, allocations: 0 / 0.6254 GB, free: 9.371 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07574/0.596, allocations: 31.05 MB / 0.6558 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.49, allocations: 4 kB / 0.6558 GB, free: 10.56 MB / 0.4981 GB " [Timeout remaining time 646] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.131892280012835] Failed to read output from testmodel.py, exit status != 0: 13.624749851005618 13.647100637 13.203567376 Calling exit ...