Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.00125/0.00125, 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.001427/0.001427, allocations: 218.4 kB / 22.24 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.37/1.37, allocations: 230.6 MB / 256 MB, free: 7.809 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.1292/0.1292, allocations: 23.93 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.StandardElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",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.001925/0.001925, allocations: 71.89 kB / 471.2 MB, free: 7.461 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3032, allocations: 59.88 MB / 0.5186 GB, free: 9.574 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.StandardElectrochemicalCell): time 0.07401/0.3772, allocations: 27.63 MB / 0.5456 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02493/0.4021, allocations: 19.03 MB / 0.5642 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001382/0.4035, allocations: 23.81 kB / 0.5642 GB, free: 10.67 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.405, allocations: 497.7 kB / 0.5647 GB, free: 10.3 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003273/0.4083, allocations: 0.9632 MB / 0.5656 GB, free: 9.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009798/0.4181, allocations: 3.347 MB / 0.5689 GB, free: 6.332 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003089/0.4212, allocations: 1.802 MB / 0.5706 GB, free: 4.523 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.4223, allocations: 0.7704 MB / 0.5714 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009833/0.4233, allocations: 0.8063 MB / 0.5722 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001158/0.4245, allocations: 0.899 MB / 0.5731 GB, free: 2.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002352/0.4247, allocations: 152 kB / 0.5732 GB, free: 1.871 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005681/0.4304, allocations: 2.001 MB / 0.5752 GB, free: 15.87 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005127/0.4309, allocations: 390.7 kB / 0.5755 GB, free: 15.48 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008312/0.4317, allocations: 0.669 MB / 0.5762 GB, free: 14.81 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008296/0.44, allocations: 4.05 MB / 0.5801 GB, free: 10.75 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.44, allocations: 0 / 0.5801 GB, free: 10.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.44, allocations: 0 / 0.5801 GB, free: 10.75 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.155e-05/0.44, allocations: 0 / 0.5801 GB, free: 10.75 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003528/0.4436, allocations: 2.068 MB / 0.5822 GB, free: 8.637 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.4436, allocations: 12.03 kB / 0.5822 GB, free: 8.625 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002338/0.4439, allocations: 194.3 kB / 0.5824 GB, free: 8.426 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/0.4456, allocations: 439.1 kB / 0.5828 GB, free: 7.996 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00185/0.4474, allocations: 0.992 MB / 0.5837 GB, free: 6.977 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001997/0.4476, allocations: 213.5 kB / 0.584 GB, free: 6.742 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002216/0.4478, allocations: 120 kB / 0.5841 GB, free: 6.625 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00265/0.4505, allocations: 1.764 MB / 0.5858 GB, free: 4.789 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.873e-05/0.4505, allocations: 0 / 0.5858 GB, free: 4.789 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001355/0.4506, allocations: 52 kB / 0.5858 GB, free: 4.738 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.76e-05/0.4507, allocations: 32 kB / 0.5859 GB, free: 4.707 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.454, allocations: 2.307 MB / 0.5881 GB, free: 2.395 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007651/0.4616, allocations: 4.988 MB / 0.593 GB, free: 13.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.4629, allocations: 0.7016 MB / 0.5937 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005498/0.4635, allocations: 336.4 kB / 0.594 GB, free: 12.22 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006545/0.47, allocations: 2.866 MB / 0.5968 GB, free: 9.328 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.47, allocations: 42.5 kB / 0.5968 GB, free: 9.277 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 1.813e-06/0.47, allocations: 0 / 0.5968 GB, free: 9.277 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001444/0.4715, allocations: 0.6465 MB / 0.5975 GB, free: 8.617 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.4716, allocations: 114.7 kB / 0.5976 GB, free: 8.48 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/0.4731, allocations: 1.345 MB / 0.5989 GB, free: 7.125 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.753e-05/0.4732, allocations: 37.95 kB / 0.5989 GB, free: 7.082 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006534/0.4738, allocations: 0.8646 MB / 0.5998 GB, free: 6.207 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.474, allocations: 150.8 kB / 0.5999 GB, free: 6.059 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000362/0.4743, allocations: 291.4 kB / 0.6002 GB, free: 5.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.4745, allocations: 357.9 kB / 0.6005 GB, free: 5.414 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005235/0.475, allocations: 343.8 kB / 0.6009 GB, free: 5.078 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001195/0.4762, allocations: 1.156 MB / 0.602 GB, free: 3.512 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001793/0.478, allocations: 1.541 MB / 0.6035 GB, free: 1.562 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.416e-05/0.478, allocations: 8 kB / 0.6035 GB, free: 1.555 MB / 446.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002415/0.4804, allocations: 1.564 MB / 0.605 GB, free: 15.98 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/0.4805, allocations: 23.94 kB / 0.6051 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-05/0.4805, allocations: 28 kB / 0.6051 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006251/0.4811, allocations: 157.4 kB / 0.6052 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.4823, allocations: 403.5 kB / 0.6056 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003115/0.4854, allocations: 3.866 MB / 0.6094 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.4864, allocations: 198.9 kB / 0.6096 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.4866, allocations: 99.98 kB / 0.6097 GB, free: 10.92 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (167): * Single equations (assignments): 163 * 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.0005047/0.4871, allocations: 329.1 kB / 0.61 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002145/0.4873, allocations: 119.2 kB / 0.6101 GB, free: 10.47 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/0.489, allocations: 0.9379 MB / 0.611 GB, free: 9.488 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.4891, allocations: 4.094 kB / 0.611 GB, free: 9.484 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4891, allocations: 3.984 kB / 0.611 GB, free: 9.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.4891, allocations: 7.984 kB / 0.611 GB, free: 9.473 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.4912, allocations: 1.281 MB / 0.6123 GB, free: 8.109 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.4912, allocations: 4 kB / 0.6123 GB, free: 8.105 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.4915, allocations: 59.91 kB / 0.6123 GB, free: 8.047 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006925/0.4922, allocations: 179.3 kB / 0.6125 GB, free: 7.859 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.531e-05/0.4922, allocations: 15.98 kB / 0.6125 GB, free: 7.844 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00294/0.4951, allocations: 3.738 MB / 0.6162 GB, free: 3.816 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.4951, allocations: 4.062 kB / 0.6162 GB, free: 3.812 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.4964, allocations: 0.917 MB / 0.6171 GB, free: 2.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002527/0.4967, allocations: 107.2 kB / 0.6172 GB, free: 2.734 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/0.4968, allocations: 19.89 kB / 0.6172 GB, free: 2.715 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003555/0.4972, allocations: 8 kB / 0.6172 GB, free: 2.707 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.267e-05/0.4973, allocations: 51.81 kB / 0.6173 GB, free: 2.656 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.4973, allocations: 16.06 kB / 0.6173 GB, free: 2.641 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001258/0.4985, allocations: 0.9664 MB / 0.6182 GB, free: 1.672 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4985, allocations: 0 / 0.6182 GB, free: 1.672 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00222/0.5008, allocations: 0.7085 MB / 0.6189 GB, free: 0.9609 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (30): * Single equations (assignments): 26 * 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.003225/0.504, allocations: 2.206 MB / 0.6211 GB, free: 14.69 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.5058, allocations: 0.823 MB / 0.6219 GB, free: 13.87 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5058, allocations: 0 / 0.6219 GB, free: 13.87 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005566/0.5063, allocations: 389.1 kB / 0.6222 GB, free: 13.46 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.5075, allocations: 210.5 kB / 0.6224 GB, free: 13.27 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.5215, allocations: 10.46 MB / 0.6327 GB, free: 1.773 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005775/0.522, allocations: 0.5074 MB / 0.6332 GB, free: 1.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008996/0.5229, allocations: 310.4 kB / 0.6335 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006849/0.5236, allocations: 0.5305 MB / 0.634 GB, free: 424 kB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5236, allocations: 0 / 0.634 GB, free: 424 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07589/0.5995, allocations: 34.58 MB / 0.6677 GB, free: 14.09 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.53, allocations: 8 kB / 0.6678 GB, free: 14.08 MB / 0.5138 GB " [Timeout remaining time 646] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell_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_StandardElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.23451765399659] Failed to read output from testmodel.py, exit status != 0: 13.665016434999416 13.690938904 13.246223477 Calling exit ...