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.00169/0.00169, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001994/0.001994, allocations: 206.9 kB / 22.24 MB, free: 5.262 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.586/1.586, allocations: 230.6 MB / 256 MB, free: 7.789 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.1388/0.1388, allocations: 23.99 MB / 336.4 MB, free: 10.84 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.002137/0.002137, allocations: 75.89 kB / 471.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3568, allocations: 59.89 MB / 0.5187 GB, free: 9.465 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.07644/0.4332, allocations: 27.19 MB / 0.5453 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02454/0.4578, allocations: 16.04 MB / 0.561 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001489/0.4593, allocations: 27.75 kB / 0.561 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00158/0.4608, allocations: 423.5 kB / 0.5614 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003153/0.464, allocations: 0.8106 MB / 0.5622 GB, free: 12.7 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008636/0.4726, allocations: 2.846 MB / 0.565 GB, free: 10.31 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002941/0.4756, allocations: 1.636 MB / 0.5666 GB, free: 8.762 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.4768, allocations: 0.7233 MB / 0.5673 GB, free: 8.016 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001165/0.478, allocations: 0.7245 MB / 0.568 GB, free: 7.289 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001314/0.4793, allocations: 0.7351 MB / 0.5687 GB, free: 6.551 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002995/0.4796, allocations: 144 kB / 0.5688 GB, free: 6.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005358/0.485, allocations: 1.669 MB / 0.5705 GB, free: 4.738 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006371/0.4856, allocations: 362.8 kB / 0.5708 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000856/0.4865, allocations: 0.6224 MB / 0.5714 GB, free: 3.758 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008162/0.4946, allocations: 3.579 MB / 0.5749 GB, free: 168 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.4946, allocations: 0 / 0.5749 GB, free: 168 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4946, allocations: 0 / 0.5749 GB, free: 168 kB / 414.1 MB Notification: Performance of Transformations before backend: time 4.027e-05/0.4947, allocations: 0 / 0.5749 GB, free: 168 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.003653/0.4983, allocations: 1.896 MB / 0.5768 GB, free: 14.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.767e-05/0.4984, allocations: 12.03 kB / 0.5768 GB, free: 14.21 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002356/0.4986, allocations: 177.8 kB / 0.5769 GB, free: 14.03 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.5003, allocations: 399 kB / 0.5773 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00186/0.5021, allocations: 0.9159 MB / 0.5782 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.5023, allocations: 205.3 kB / 0.5784 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000203/0.5025, allocations: 112 kB / 0.5785 GB, free: 12.36 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002708/0.5052, allocations: 1.664 MB / 0.5801 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.477e-05/0.5053, allocations: 4 kB / 0.5801 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001292/0.5054, allocations: 51.98 kB / 0.5802 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.973e-05/0.5054, allocations: 32 kB / 0.5802 GB, free: 10.54 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003278/0.5087, allocations: 2.104 MB / 0.5823 GB, free: 8.43 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0085/0.5172, allocations: 4.86 MB / 0.587 GB, free: 3.441 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.5186, allocations: 0.6782 MB / 0.5877 GB, free: 2.738 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005844/0.5192, allocations: 332.3 kB / 0.588 GB, free: 2.406 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006678/0.5258, allocations: 2.664 MB / 0.5906 GB, free: 15.71 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.5259, allocations: 38.55 kB / 0.5906 GB, free: 15.67 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003357/0.5262, allocations: 83.19 kB / 0.5907 GB, free: 15.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.495e-06/0.5262, allocations: 0 / 0.5907 GB, free: 15.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001433/0.5277, allocations: 0.6121 MB / 0.5913 GB, free: 14.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.015e-05/0.5277, allocations: 106.8 kB / 0.5914 GB, free: 14.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/0.5294, allocations: 1.253 MB / 0.5926 GB, free: 13.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.65e-05/0.5294, allocations: 33.7 kB / 0.5927 GB, free: 13.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006332/0.5301, allocations: 0.7944 MB / 0.5934 GB, free: 12.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.5302, allocations: 146.9 kB / 0.5936 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003533/0.5306, allocations: 270.7 kB / 0.5938 GB, free: 12.31 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.5307, allocations: 358.2 kB / 0.5942 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005298/0.5313, allocations: 330.4 kB / 0.5945 GB, free: 11.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.5325, allocations: 1.05 MB / 0.5955 GB, free: 10.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001827/0.5344, allocations: 1.403 MB / 0.5969 GB, free: 8.449 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.5344, allocations: 8 kB / 0.5969 GB, free: 8.441 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002533/0.5369, allocations: 1.46 MB / 0.5983 GB, free: 6.969 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.5369, allocations: 19.94 kB / 0.5984 GB, free: 6.949 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.102e-05/0.537, allocations: 27.94 kB / 0.5984 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006611/0.5376, allocations: 149.4 kB / 0.5985 GB, free: 6.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.5388, allocations: 383.5 kB / 0.5989 GB, free: 6.395 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003387/0.5421, allocations: 3.862 MB / 0.6027 GB, free: 2.246 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009895/0.5431, allocations: 76.17 kB / 0.6027 GB, free: 2.172 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.5433, allocations: 91.98 kB / 0.6028 GB, free: 2.082 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.0005315/0.5438, allocations: 309.1 kB / 0.6031 GB, free: 1.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002276/0.544, allocations: 111.2 kB / 0.6032 GB, free: 1.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/0.5458, allocations: 0.8633 MB / 0.6041 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.5458, allocations: 8 kB / 0.6041 GB, free: 0.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.5458, allocations: 0 / 0.6041 GB, free: 0.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5458, allocations: 0 / 0.6041 GB, free: 0.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.5479, allocations: 1.171 MB / 0.6052 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.5479, allocations: 4 kB / 0.6052 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.5482, allocations: 60.09 kB / 0.6053 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007492/0.5489, allocations: 175.3 kB / 0.6054 GB, free: 15.26 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/0.549, allocations: 12 kB / 0.6055 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003154/0.5521, allocations: 3.752 MB / 0.6091 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.5521, allocations: 0 / 0.6091 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.5536, allocations: 0.8519 MB / 0.6099 GB, free: 10.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002838/0.5539, allocations: 99.34 kB / 0.61 GB, free: 10.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.554, allocations: 11.95 kB / 0.6101 GB, free: 10.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003834/0.5544, allocations: 12.16 kB / 0.6101 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.57e-05/0.5544, allocations: 35.89 kB / 0.6101 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.5545, allocations: 19.98 kB / 0.6101 GB, free: 10.12 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001165/0.5556, allocations: 0.8927 MB / 0.611 GB, free: 9.223 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5556, allocations: 0 / 0.611 GB, free: 9.223 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002036/0.5577, allocations: 0.6267 MB / 0.6116 GB, free: 8.594 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.002995/0.5607, allocations: 2.05 MB / 0.6136 GB, free: 6.484 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.5624, allocations: 0.7699 MB / 0.6144 GB, free: 5.719 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.5624, allocations: 4 kB / 0.6144 GB, free: 5.715 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005656/0.5629, allocations: 388.3 kB / 0.6147 GB, free: 5.312 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.5641, allocations: 172.9 kB / 0.6149 GB, free: 5.145 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/0.5778, allocations: 9.667 MB / 0.6243 GB, free: 10.55 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005381/0.5783, allocations: 476.8 kB / 0.6248 GB, free: 10.05 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008999/0.5792, allocations: 286.7 kB / 0.6251 GB, free: 9.789 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006446/0.5799, allocations: 499.2 kB / 0.6255 GB, free: 9.301 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5799, allocations: 4 kB / 0.6255 GB, free: 9.297 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07496/0.6548, allocations: 30.67 MB / 0.6555 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/14.53, allocations: 7.094 kB / 0.6555 GB, free: 10.87 MB / 0.4981 GB " [Timeout remaining time 645] (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 & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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: 17.523223666939884] Failed to read output from testmodel.py, exit status != 0: 14.667781011201441 14.684719841 14.186554662 Calling exit ...