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.001479/0.001479, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.001701/0.001701, allocations: 217 kB / 22.25 MB, free: 5.082 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.367/1.367, allocations: 230.6 MB / 256 MB, free: 8.047 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.1241/0.1241, allocations: 23.89 MB / 336.3 MB, free: 11.18 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.002006/0.002006, allocations: 75.89 kB / 471.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.285, allocations: 59.87 MB / 0.5187 GB, free: 9.578 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.03434/0.3193, allocations: 27.8 MB / 0.5458 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02259/0.3419, allocations: 18.32 MB / 0.5637 GB, free: 11.17 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001571/0.3435, allocations: 19.81 kB / 0.5637 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001524/0.345, allocations: 482.9 kB / 0.5642 GB, free: 10.78 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002934/0.3479, allocations: 0.8454 MB / 0.565 GB, free: 10.05 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008173/0.3561, allocations: 2.843 MB / 0.5678 GB, free: 7.668 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00266/0.3588, allocations: 1.637 MB / 0.5694 GB, free: 6.164 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009928/0.3597, allocations: 0.7429 MB / 0.5701 GB, free: 5.398 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008038/0.3605, allocations: 0.7206 MB / 0.5708 GB, free: 4.676 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001069/0.3616, allocations: 0.8133 MB / 0.5716 GB, free: 3.859 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001971/0.3618, allocations: 147.9 kB / 0.5717 GB, free: 3.715 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006441/0.3683, allocations: 1.782 MB / 0.5735 GB, free: 1.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004485/0.3687, allocations: 366.8 kB / 0.5738 GB, free: 1.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008452/0.3695, allocations: 0.731 MB / 0.5746 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007382/0.3769, allocations: 3.591 MB / 0.5781 GB, free: 13.23 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3769, allocations: 0 / 0.5781 GB, free: 13.23 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3769, allocations: 0 / 0.5781 GB, free: 13.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.377, allocations: 4 kB / 0.5781 GB, free: 13.23 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003196/0.3802, allocations: 1.897 MB / 0.5799 GB, free: 11.29 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3802, allocations: 12.03 kB / 0.5799 GB, free: 11.28 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002236/0.3804, allocations: 177.8 kB / 0.5801 GB, free: 11.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001459/0.3819, allocations: 399.1 kB / 0.5805 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001652/0.3835, allocations: 0.9158 MB / 0.5814 GB, free: 9.758 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00018/0.3837, allocations: 197.3 kB / 0.5816 GB, free: 9.539 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.3839, allocations: 119.9 kB / 0.5817 GB, free: 9.422 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00251/0.3864, allocations: 1.664 MB / 0.5833 GB, free: 7.684 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.3864, allocations: 4 kB / 0.5833 GB, free: 7.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.3865, allocations: 48 kB / 0.5833 GB, free: 7.633 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.896e-05/0.3866, allocations: 32 kB / 0.5834 GB, free: 7.602 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003101/0.3897, allocations: 2.124 MB / 0.5855 GB, free: 5.477 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007721/0.3974, allocations: 5.388 MB / 0.5907 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.3986, allocations: 0.6899 MB / 0.5914 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005645/0.3992, allocations: 328.4 kB / 0.5917 GB, free: 14.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006207/0.4054, allocations: 2.78 MB / 0.5944 GB, free: 12.05 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.4054, allocations: 38.56 kB / 0.5945 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002545/0.4057, allocations: 79.25 kB / 0.5945 GB, free: 11.92 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 1.784e-06/0.4057, allocations: 0 / 0.5945 GB, free: 11.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001335/0.407, allocations: 0.6117 MB / 0.5951 GB, free: 11.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.613e-05/0.4071, allocations: 110.8 kB / 0.5952 GB, free: 11.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001459/0.4086, allocations: 1.21 MB / 0.5964 GB, free: 9.938 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.4086, allocations: 29.7 kB / 0.5964 GB, free: 9.902 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006033/0.4092, allocations: 0.8023 MB / 0.5972 GB, free: 9.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.4093, allocations: 146.9 kB / 0.5974 GB, free: 8.945 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003477/0.4097, allocations: 266.7 kB / 0.5976 GB, free: 8.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.4099, allocations: 362.1 kB / 0.598 GB, free: 8.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005015/0.4104, allocations: 322.5 kB / 0.5983 GB, free: 8.004 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.4115, allocations: 1.054 MB / 0.5993 GB, free: 6.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001673/0.4132, allocations: 1.41 MB / 0.6007 GB, free: 4.812 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.961e-05/0.4132, allocations: 11.94 kB / 0.6007 GB, free: 4.801 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.0022/0.4154, allocations: 1.452 MB / 0.6021 GB, free: 3.336 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.4154, allocations: 19.94 kB / 0.6021 GB, free: 3.316 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.776e-05/0.4154, allocations: 28 kB / 0.6022 GB, free: 3.289 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005993/0.416, allocations: 157.9 kB / 0.6023 GB, free: 3.129 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.4171, allocations: 367.4 kB / 0.6027 GB, free: 2.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/0.4203, allocations: 3.866 MB / 0.6064 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007828/0.4211, allocations: 84.05 kB / 0.6065 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.4213, allocations: 91.98 kB / 0.6066 GB, free: 14.44 MB / 462.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.000484/0.4217, allocations: 305.1 kB / 0.6069 GB, free: 14.13 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.4219, allocations: 111.3 kB / 0.607 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/0.4236, allocations: 0.8516 MB / 0.6078 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.4236, allocations: 4 kB / 0.6078 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4236, allocations: 4 kB / 0.6078 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.4236, allocations: 0 / 0.6078 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/0.4257, allocations: 1.238 MB / 0.609 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.4257, allocations: 4.188 kB / 0.609 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002564/0.4259, allocations: 67.89 kB / 0.6091 GB, free: 11.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007029/0.4266, allocations: 167.3 kB / 0.6093 GB, free: 11.57 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.4267, allocations: 12 kB / 0.6093 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002983/0.4296, allocations: 3.748 MB / 0.6129 GB, free: 7.512 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4296, allocations: 0 / 0.6129 GB, free: 7.512 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.4308, allocations: 0.8637 MB / 0.6138 GB, free: 6.598 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.431, allocations: 91.28 kB / 0.6139 GB, free: 6.508 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.4311, allocations: 12.06 kB / 0.6139 GB, free: 6.496 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000353/0.4315, allocations: 16 kB / 0.6139 GB, free: 6.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/0.4315, allocations: 39.81 kB / 0.6139 GB, free: 6.441 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/0.4316, allocations: 16 kB / 0.614 GB, free: 6.426 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001113/0.4327, allocations: 0.8927 MB / 0.6148 GB, free: 5.527 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4327, allocations: 3.938 kB / 0.6148 GB, free: 5.523 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001801/0.4345, allocations: 0.6306 MB / 0.6154 GB, free: 4.891 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.002607/0.4371, allocations: 2.05 MB / 0.6174 GB, free: 2.781 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.4386, allocations: 0.7667 MB / 0.6182 GB, free: 2.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.4386, allocations: 8 kB / 0.6182 GB, free: 2.012 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005146/0.4391, allocations: 379.8 kB / 0.6186 GB, free: 1.617 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009485/0.4401, allocations: 190.2 kB / 0.6187 GB, free: 1.441 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/0.4524, allocations: 9.656 MB / 0.6282 GB, free: 6.859 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007333/0.4531, allocations: 1.063 MB / 0.6292 GB, free: 5.77 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007786/0.4539, allocations: 285.6 kB / 0.6295 GB, free: 5.508 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006434/0.4545, allocations: 499.2 kB / 0.63 GB, free: 5.02 MB / 478.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4545, allocations: 0 / 0.63 GB, free: 5.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07227/0.5268, allocations: 30.47 MB / 0.6597 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.2/22.73, allocations: 0 / 0.6597 GB, free: 6.711 MB / 0.4981 GB " [Timeout remaining time 637] (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: 25.340178554004524] Failed to read output from testmodel.py, exit status != 0: 22.872372860001633 22.901846458 22.519941636 Calling exit ...