Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001333/0.001333, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001528/0.001528, allocations: 217.8 kB / 22.25 MB, free: 5.258 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.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.773 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.1464/0.1464, allocations: 23.88 MB / 336.3 MB, free: 10.94 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.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_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.002073/0.002073, allocations: 70.56 kB / 471.1 MB, free: 7.484 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3316, allocations: 59.86 MB / 0.5185 GB, free: 9.59 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.CheckSubstancesData.StandardElectrochemicalCell2): time 0.07346/0.405, allocations: 27.08 MB / 0.545 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02243/0.4275, allocations: 16.04 MB / 0.5606 GB, free: 13.99 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001325/0.4288, allocations: 27.75 kB / 0.5607 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001584/0.4304, allocations: 423.5 kB / 0.5611 GB, free: 13.65 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00287/0.4332, allocations: 0.8104 MB / 0.5619 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00959/0.4428, allocations: 2.847 MB / 0.5646 GB, free: 10.57 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004225/0.4471, allocations: 1.637 MB / 0.5662 GB, free: 9 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001431/0.4485, allocations: 0.7467 MB / 0.567 GB, free: 8.23 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001/0.4495, allocations: 0.7245 MB / 0.5677 GB, free: 7.504 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00137/0.4509, allocations: 0.8172 MB / 0.5685 GB, free: 6.684 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002628/0.4511, allocations: 140 kB / 0.5686 GB, free: 6.547 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006778/0.4579, allocations: 1.712 MB / 0.5703 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005634/0.4585, allocations: 362.8 kB / 0.5706 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009443/0.4594, allocations: 0.6146 MB / 0.5712 GB, free: 3.859 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.4698, allocations: 3.579 MB / 0.5747 GB, free: 272 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.4698, allocations: 0 / 0.5747 GB, free: 272 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4698, allocations: 0 / 0.5747 GB, free: 272 kB / 414.1 MB Notification: Performance of Transformations before backend: time 4.527e-05/0.4699, allocations: 0 / 0.5747 GB, free: 272 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.00387/0.4738, allocations: 1.893 MB / 0.5766 GB, free: 14.33 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.4738, allocations: 11.97 kB / 0.5766 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002281/0.474, allocations: 185.8 kB / 0.5768 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001631/0.4757, allocations: 387.3 kB / 0.5771 GB, free: 13.75 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001882/0.4775, allocations: 0.912 MB / 0.578 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000208/0.4778, allocations: 209.3 kB / 0.5782 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002258/0.478, allocations: 116 kB / 0.5783 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002766/0.4807, allocations: 1.664 MB / 0.58 GB, free: 10.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.4808, allocations: 4 kB / 0.58 GB, free: 10.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.4809, allocations: 48 kB / 0.58 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.7e-05/0.4809, allocations: 28 kB / 0.58 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003341/0.4843, allocations: 2.104 MB / 0.5821 GB, free: 8.539 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008954/0.4932, allocations: 4.852 MB / 0.5868 GB, free: 3.559 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.4946, allocations: 0.686 MB / 0.5875 GB, free: 2.848 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005922/0.4952, allocations: 336.4 kB / 0.5878 GB, free: 2.512 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006954/0.5022, allocations: 2.656 MB / 0.5904 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/0.5022, allocations: 42.55 kB / 0.5905 GB, free: 15.78 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003668/0.5026, allocations: 79.19 kB / 0.5905 GB, free: 15.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 4.659e-06/0.5026, allocations: 3.984 kB / 0.5905 GB, free: 15.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001475/0.504, allocations: 0.616 MB / 0.5911 GB, free: 15.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.733e-05/0.5041, allocations: 106.8 kB / 0.5912 GB, free: 14.94 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001544/0.5057, allocations: 1.253 MB / 0.5925 GB, free: 13.67 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.5057, allocations: 29.7 kB / 0.5925 GB, free: 13.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005971/0.5063, allocations: 0.7945 MB / 0.5933 GB, free: 12.83 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.5064, allocations: 146.9 kB / 0.5934 GB, free: 12.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003668/0.5068, allocations: 266.7 kB / 0.5937 GB, free: 12.42 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.5069, allocations: 357.9 kB / 0.594 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005122/0.5075, allocations: 326.7 kB / 0.5943 GB, free: 11.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.5086, allocations: 1.065 MB / 0.5954 GB, free: 10.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001798/0.5104, allocations: 1.399 MB / 0.5967 GB, free: 8.555 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/0.5104, allocations: 8 kB / 0.5967 GB, free: 8.547 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002517/0.5129, allocations: 1.456 MB / 0.5981 GB, free: 7.078 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.513, allocations: 27.16 kB / 0.5982 GB, free: 7.055 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.925e-05/0.513, allocations: 24 kB / 0.5982 GB, free: 7.031 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006953/0.5137, allocations: 145.6 kB / 0.5983 GB, free: 6.883 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.5149, allocations: 375.4 kB / 0.5987 GB, free: 6.516 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003423/0.5183, allocations: 3.87 MB / 0.6025 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.5193, allocations: 72.17 kB / 0.6025 GB, free: 2.289 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001539/0.5195, allocations: 91.98 kB / 0.6026 GB, free: 2.199 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.0004987/0.52, allocations: 321.1 kB / 0.6029 GB, free: 1.875 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.5202, allocations: 103.3 kB / 0.603 GB, free: 1.773 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001798/0.522, allocations: 0.8596 MB / 0.6039 GB, free: 0.875 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.522, allocations: 0 / 0.6039 GB, free: 0.875 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.522, allocations: 4 kB / 0.6039 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.522, allocations: 4 kB / 0.6039 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/0.5242, allocations: 1.172 MB / 0.605 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.5242, allocations: 0 / 0.605 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/0.5245, allocations: 63.91 kB / 0.6051 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008133/0.5253, allocations: 175.2 kB / 0.6053 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.5254, allocations: 12 kB / 0.6053 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003299/0.5287, allocations: 3.741 MB / 0.6089 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5287, allocations: 4.094 kB / 0.6089 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001486/0.5301, allocations: 0.8635 MB / 0.6098 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003321/0.5305, allocations: 103.2 kB / 0.6099 GB, free: 10.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.5306, allocations: 8 kB / 0.6099 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004089/0.531, allocations: 8 kB / 0.6099 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.969e-05/0.5311, allocations: 39.89 kB / 0.6099 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.5312, allocations: 24.05 kB / 0.6099 GB, free: 10.22 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001259/0.5324, allocations: 0.9005 MB / 0.6108 GB, free: 9.316 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5324, allocations: 0 / 0.6108 GB, free: 9.316 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002215/0.5347, allocations: 0.6228 MB / 0.6114 GB, free: 8.691 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.003375/0.538, allocations: 2.051 MB / 0.6134 GB, free: 6.582 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.5399, allocations: 0.7722 MB / 0.6142 GB, free: 5.816 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5399, allocations: 0 / 0.6142 GB, free: 5.816 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005479/0.5405, allocations: 382.4 kB / 0.6145 GB, free: 5.418 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.5416, allocations: 172.9 kB / 0.6147 GB, free: 5.258 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0143/0.5559, allocations: 9.668 MB / 0.6242 GB, free: 10.66 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006237/0.5565, allocations: 480.8 kB / 0.6246 GB, free: 10.16 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008455/0.5574, allocations: 279.6 kB / 0.6249 GB, free: 9.902 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006704/0.558, allocations: 499.2 kB / 0.6254 GB, free: 9.414 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/0.558, allocations: 4 kB / 0.6254 GB, free: 9.41 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0742/0.6322, allocations: 31.04 MB / 0.6557 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/14.12, allocations: 8.062 kB / 0.6557 GB, free: 10.61 MB / 0.4981 GB " [Timeout remaining time 646] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.996468717989046] Failed to read output from testmodel.py, exit status != 0: 14.264997135003796 14.280480025 13.807305349 Calling exit ...