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.00168/0.00168, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.002148/0.002148, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.509/1.509, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1358/0.1358, allocations: 23.87 MB / 333.4 MB, free: 1.207 MB / 254.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="cs",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.001994/0.001994, allocations: 63.75 kB / 466.7 MB, free: 30.81 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09982/0.1018, allocations: 59.83 MB / 0.5142 GB, free: 12.96 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.04005/0.1419, allocations: 27.58 MB / 0.5411 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02316/0.165, allocations: 18.28 MB / 0.559 GB, free: 15.07 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.1661, allocations: 19.81 kB / 0.559 GB, free: 15.05 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001456/0.1675, allocations: 476.5 kB / 0.5594 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002673/0.1702, allocations: 0.8379 MB / 0.5603 GB, free: 13.74 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007675/0.1779, allocations: 2.822 MB / 0.563 GB, free: 10.9 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003037/0.1809, allocations: 1.637 MB / 0.5646 GB, free: 9.254 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001346/0.1822, allocations: 0.7581 MB / 0.5654 GB, free: 8.473 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001192/0.1834, allocations: 0.7206 MB / 0.5661 GB, free: 7.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.1847, allocations: 0.8133 MB / 0.5669 GB, free: 6.934 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002729/0.185, allocations: 140 kB / 0.567 GB, free: 6.797 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006002/0.191, allocations: 1.782 MB / 0.5687 GB, free: 5.012 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006825/0.1917, allocations: 358.9 kB / 0.5691 GB, free: 4.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.1928, allocations: 0.7504 MB / 0.5698 GB, free: 3.906 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009032/0.2018, allocations: 3.587 MB / 0.5733 GB, free: 312 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2018, allocations: 0 / 0.5733 GB, free: 312 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2018, allocations: 0 / 0.5733 GB, free: 312 kB / 430.1 MB Notification: Performance of Transformations before backend: time 5.047e-05/0.2019, allocations: 0 / 0.5733 GB, free: 312 kB / 430.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.003847/0.2057, allocations: 1.968 MB / 0.5752 GB, free: 14.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.2058, allocations: 8.031 kB / 0.5752 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.488e-05/0.2058, allocations: 38.58 kB / 0.5753 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002507/0.2061, allocations: 177.8 kB / 0.5754 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001699/0.2078, allocations: 395.3 kB / 0.5758 GB, free: 13.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001898/0.2097, allocations: 0.9853 MB / 0.5768 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.2099, allocations: 149.7 kB / 0.5769 GB, free: 12.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002457/0.2101, allocations: 116 kB / 0.577 GB, free: 12.35 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002936/0.213, allocations: 1.653 MB / 0.5786 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/0.2131, allocations: 7.938 kB / 0.5787 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001339/0.2132, allocations: 44 kB / 0.5787 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.961e-05/0.2132, allocations: 35.94 kB / 0.5787 GB, free: 10.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003544/0.2168, allocations: 2.108 MB / 0.5808 GB, free: 8.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009241/0.226, allocations: 5.433 MB / 0.5861 GB, free: 2.805 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.2275, allocations: 0.6946 MB / 0.5868 GB, free: 2.082 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006316/0.2282, allocations: 332.4 kB / 0.5871 GB, free: 1.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2502/0.4783, allocations: 5.056 MB / 0.592 GB, free: 63.17 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.4784, allocations: 39.06 kB / 0.5921 GB, free: 63.13 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000393/0.4788, allocations: 78.88 kB / 0.5921 GB, free: 63.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 3.497e-06/0.4788, allocations: 0.7188 kB / 0.5921 GB, free: 63.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001677/0.4804, allocations: 0.7487 MB / 0.5929 GB, free: 62.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.4805, allocations: 113.2 kB / 0.593 GB, free: 62.76 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001621/0.4821, allocations: 1.204 MB / 0.5942 GB, free: 62.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.446e-05/0.4821, allocations: 33.08 kB / 0.5942 GB, free: 62.51 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004138/0.4826, allocations: 0.7952 MB / 0.595 GB, free: 61.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.657e-05/0.4827, allocations: 145.1 kB / 0.5951 GB, free: 61.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003368/0.483, allocations: 274.9 kB / 0.5954 GB, free: 61.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.244e-05/0.4831, allocations: 351.4 kB / 0.5957 GB, free: 61.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005057/0.4836, allocations: 325.2 kB / 0.596 GB, free: 61.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007857/0.4844, allocations: 1.042 MB / 0.597 GB, free: 60.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.4857, allocations: 1.401 MB / 0.5984 GB, free: 58.92 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.81e-05/0.4857, allocations: 7.531 kB / 0.5984 GB, free: 58.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002295/0.488, allocations: 1.437 MB / 0.5998 GB, free: 58.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.488, allocations: 16.5 kB / 0.5998 GB, free: 58.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.222e-05/0.488, allocations: 26.19 kB / 0.5998 GB, free: 58.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006198/0.4886, allocations: 156.4 kB / 0.6 GB, free: 58.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.4898, allocations: 375.7 kB / 0.6004 GB, free: 58.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002299/0.4921, allocations: 4.082 MB / 0.6043 GB, free: 54.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.4931, allocations: 75.08 kB / 0.6044 GB, free: 54.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/0.4933, allocations: 97.08 kB / 0.6045 GB, free: 54.16 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.0004833/0.4937, allocations: 313.3 kB / 0.6048 GB, free: 53.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.4939, allocations: 111.7 kB / 0.6049 GB, free: 53.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.4955, allocations: 0.8478 MB / 0.6057 GB, free: 53.47 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.4955, allocations: 3.844 kB / 0.6057 GB, free: 53.47 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.4955, allocations: 1.828 kB / 0.6057 GB, free: 53.47 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.4955, allocations: 2.609 kB / 0.6057 GB, free: 53.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00223/0.4978, allocations: 1.263 MB / 0.607 GB, free: 52.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.4978, allocations: 2.344 kB / 0.607 GB, free: 52.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002779/0.4981, allocations: 58.88 kB / 0.607 GB, free: 52.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007783/0.4988, allocations: 182 kB / 0.6072 GB, free: 52.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.297e-05/0.4989, allocations: 15.33 kB / 0.6072 GB, free: 52.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002118/0.501, allocations: 3.949 MB / 0.6111 GB, free: 48.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.501, allocations: 8.688 kB / 0.6111 GB, free: 48.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.5024, allocations: 0.8564 MB / 0.6119 GB, free: 48.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003198/0.5027, allocations: 178.5 kB / 0.6121 GB, free: 48.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.5028, allocations: 9.188 kB / 0.6121 GB, free: 48.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000386/0.5032, allocations: 12.03 kB / 0.6121 GB, free: 48.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.5033, allocations: 43.88 kB / 0.6122 GB, free: 47.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.132e-05/0.5034, allocations: 14.77 kB / 0.6122 GB, free: 47.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001179/0.5045, allocations: 0.8872 MB / 0.613 GB, free: 47.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5045, allocations: 1.312 kB / 0.613 GB, free: 47.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002335/0.5069, allocations: 0.6291 MB / 0.6137 GB, free: 47.42 MB / 446.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.002622/0.5095, allocations: 2.044 MB / 0.6157 GB, free: 46.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001687/0.5112, allocations: 0.7722 MB / 0.6164 GB, free: 45.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5112, allocations: 0 / 0.6164 GB, free: 45.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004779/0.5117, allocations: 384.3 kB / 0.6168 GB, free: 45.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.5128, allocations: 164.9 kB / 0.6169 GB, free: 45.63 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.5234, allocations: 9.647 MB / 0.6264 GB, free: 39.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.5238, allocations: 1.061 MB / 0.6274 GB, free: 38.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007512/0.5245, allocations: 280.6 kB / 0.6277 GB, free: 38.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004512/0.525, allocations: 497.4 kB / 0.6281 GB, free: 38.27 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.525, allocations: 0 / 0.6281 GB, free: 38.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05599/0.581, allocations: 29.72 MB / 0.6572 GB, free: 11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.82/23.4, allocations: 7.859 kB / 0.6572 GB, free: 11 MB / 446.1 MB " [Timeout remaining time 636] (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: 26.40495172404917] Failed to read output from testmodel.py, exit status != 0: 23.562933072040323 23.575517303 23.370265347 Calling exit ...