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.001349/0.001349, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001646/0.001646, allocations: 216.4 kB / 22.25 MB, free: 4.855 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 7.812 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.138/0.138, allocations: 23.87 MB / 336.3 MB, free: 10.96 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.002114/0.002114, allocations: 67.89 kB / 471.1 MB, free: 7.512 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3139, allocations: 59.85 MB / 0.5185 GB, free: 9.574 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.07336/0.3873, allocations: 27.2 MB / 0.5451 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02373/0.411, allocations: 16.04 MB / 0.5608 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001298/0.4123, allocations: 23.81 kB / 0.5608 GB, free: 13.85 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001721/0.414, allocations: 428.1 kB / 0.5612 GB, free: 13.53 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003191/0.4172, allocations: 0.8058 MB / 0.562 GB, free: 12.85 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009194/0.4264, allocations: 2.851 MB / 0.5648 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003464/0.4299, allocations: 1.638 MB / 0.5664 GB, free: 8.918 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00173/0.4316, allocations: 0.7273 MB / 0.5671 GB, free: 8.168 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.4331, allocations: 0.7206 MB / 0.5678 GB, free: 7.445 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001608/0.4347, allocations: 0.739 MB / 0.5685 GB, free: 6.703 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005259/0.4352, allocations: 140 kB / 0.5686 GB, free: 6.566 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005559/0.4408, allocations: 1.669 MB / 0.5703 GB, free: 4.895 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006083/0.4414, allocations: 358.9 kB / 0.5706 GB, free: 4.543 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.4425, allocations: 0.6223 MB / 0.5712 GB, free: 3.918 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008084/0.4506, allocations: 3.575 MB / 0.5747 GB, free: 336 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.4506, allocations: 0 / 0.5747 GB, free: 336 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4506, allocations: 0 / 0.5747 GB, free: 336 kB / 414.1 MB Notification: Performance of Transformations before backend: time 5.462e-05/0.4506, allocations: 0 / 0.5747 GB, free: 336 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.004216/0.4548, allocations: 1.897 MB / 0.5766 GB, free: 14.39 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.4549, allocations: 8.031 kB / 0.5766 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003551/0.4552, allocations: 181.8 kB / 0.5767 GB, free: 14.19 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001737/0.457, allocations: 391.3 kB / 0.5771 GB, free: 13.81 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002065/0.459, allocations: 0.9158 MB / 0.578 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002112/0.4593, allocations: 201.3 kB / 0.5782 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002965/0.4596, allocations: 124 kB / 0.5783 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00296/0.4625, allocations: 1.66 MB / 0.5799 GB, free: 10.79 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.997e-05/0.4625, allocations: 3.938 kB / 0.5799 GB, free: 10.78 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000124/0.4627, allocations: 48 kB / 0.58 GB, free: 10.73 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.151e-05/0.4627, allocations: 32 kB / 0.58 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003418/0.4661, allocations: 2.096 MB / 0.5821 GB, free: 8.605 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008585/0.4747, allocations: 4.86 MB / 0.5868 GB, free: 3.617 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.4761, allocations: 0.6937 MB / 0.5875 GB, free: 2.898 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005959/0.4767, allocations: 332.4 kB / 0.5878 GB, free: 2.566 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006604/0.4833, allocations: 2.656 MB / 0.5904 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.4833, allocations: 42.56 kB / 0.5904 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002944/0.4836, allocations: 83.19 kB / 0.5905 GB, free: 15.75 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.174e-06/0.4836, allocations: 3.938 kB / 0.5905 GB, free: 15.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001415/0.485, allocations: 0.6082 MB / 0.5911 GB, free: 15.12 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.119e-05/0.4851, allocations: 110.8 kB / 0.5912 GB, free: 14.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001623/0.4867, allocations: 1.249 MB / 0.5924 GB, free: 13.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.025e-05/0.4868, allocations: 33.7 kB / 0.5925 GB, free: 13.69 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006626/0.4875, allocations: 0.7985 MB / 0.5932 GB, free: 12.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.4876, allocations: 146.9 kB / 0.5934 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003692/0.488, allocations: 270.7 kB / 0.5936 GB, free: 12.47 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.4882, allocations: 349.9 kB / 0.594 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005548/0.4887, allocations: 330.5 kB / 0.5943 GB, free: 11.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.4899, allocations: 1.058 MB / 0.5953 GB, free: 10.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00183/0.4918, allocations: 1.399 MB / 0.5967 GB, free: 8.613 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.4918, allocations: 8 kB / 0.5967 GB, free: 8.605 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.00249/0.4943, allocations: 1.452 MB / 0.5981 GB, free: 7.141 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.4943, allocations: 19.94 kB / 0.5981 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.494e-05/0.4943, allocations: 31.98 kB / 0.5982 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006524/0.495, allocations: 145.6 kB / 0.5983 GB, free: 6.941 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.4962, allocations: 375.9 kB / 0.5987 GB, free: 6.574 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003387/0.4996, allocations: 3.862 MB / 0.6024 GB, free: 2.426 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008555/0.5004, allocations: 84.22 kB / 0.6025 GB, free: 2.344 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.5005, allocations: 95.98 kB / 0.6026 GB, free: 2.25 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.0005081/0.5011, allocations: 315.9 kB / 0.6029 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.5013, allocations: 111.3 kB / 0.603 GB, free: 1.824 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/0.5031, allocations: 0.854 MB / 0.6038 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.5031, allocations: 4 kB / 0.6039 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.5031, allocations: 0 / 0.6039 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.5031, allocations: 4 kB / 0.6039 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002252/0.5053, allocations: 1.183 MB / 0.605 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.5053, allocations: 0 / 0.605 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.5056, allocations: 55.97 kB / 0.6051 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007672/0.5064, allocations: 183.2 kB / 0.6052 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.271e-05/0.5064, allocations: 12 kB / 0.6053 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003174/0.5096, allocations: 3.737 MB / 0.6089 GB, free: 11.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.836e-06/0.5096, allocations: 7.969 kB / 0.6089 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.511, allocations: 0.8638 MB / 0.6098 GB, free: 10.45 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002368/0.5112, allocations: 95.34 kB / 0.6098 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.5114, allocations: 15.98 kB / 0.6099 GB, free: 10.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003644/0.5117, allocations: 8 kB / 0.6099 GB, free: 10.33 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.878e-05/0.5118, allocations: 43.92 kB / 0.6099 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.5118, allocations: 12 kB / 0.6099 GB, free: 10.28 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001214/0.513, allocations: 0.8966 MB / 0.6108 GB, free: 9.375 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.513, allocations: 0 / 0.6108 GB, free: 9.375 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001983/0.515, allocations: 0.6306 MB / 0.6114 GB, free: 8.742 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.002909/0.5179, allocations: 2.051 MB / 0.6134 GB, free: 6.633 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.5196, allocations: 0.7748 MB / 0.6142 GB, free: 5.863 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5196, allocations: 0 / 0.6142 GB, free: 5.863 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005481/0.5202, allocations: 392.2 kB / 0.6145 GB, free: 5.457 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.5212, allocations: 169.8 kB / 0.6147 GB, free: 5.301 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.535, allocations: 9.653 MB / 0.6241 GB, free: 10.72 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005642/0.5355, allocations: 480.8 kB / 0.6246 GB, free: 10.21 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008619/0.5364, allocations: 287.1 kB / 0.6249 GB, free: 9.949 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006739/0.5371, allocations: 495.2 kB / 0.6253 GB, free: 9.465 MB / 478.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5371, allocations: 0 / 0.6253 GB, free: 9.465 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08928/0.6264, allocations: 30.68 MB / 0.6553 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.46, allocations: 16.06 kB / 0.6553 GB, free: 11.01 MB / 0.4981 GB " [Timeout remaining time 645] (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: 17.217554746195674] Failed to read output from testmodel.py, exit status != 0: 14.592012685723603 14.610349729 14.155910788 Calling exit ...