Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001545/0.001545, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.00168/0.00168, allocations: 217.2 kB / 22.25 MB, free: 5.102 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.797 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.1589/0.1589, allocations: 23.88 MB / 336.3 MB, free: 11.05 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.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_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.002088/0.002088, allocations: 63.91 kB / 471.1 MB, free: 7.504 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3652, allocations: 59.86 MB / 0.5185 GB, free: 9.512 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.StandardElectrochemicalCell): time 0.07405/0.4392, allocations: 27.61 MB / 0.5455 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02642/0.4656, allocations: 19.02 MB / 0.5641 GB, free: 10.77 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00127/0.4669, allocations: 27.75 kB / 0.5641 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.4683, allocations: 490 kB / 0.5646 GB, free: 10.38 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003026/0.4714, allocations: 0.9714 MB / 0.5655 GB, free: 9.555 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009676/0.481, allocations: 3.348 MB / 0.5688 GB, free: 6.402 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003186/0.4842, allocations: 1.806 MB / 0.5705 GB, free: 4.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001204/0.4854, allocations: 0.7666 MB / 0.5713 GB, free: 3.801 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.4865, allocations: 0.8024 MB / 0.5721 GB, free: 2.996 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.4879, allocations: 0.899 MB / 0.573 GB, free: 2.094 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002532/0.4882, allocations: 148 kB / 0.5731 GB, free: 1.949 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005953/0.4941, allocations: 2.008 MB / 0.5751 GB, free: 15.94 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005999/0.4947, allocations: 386.8 kB / 0.5754 GB, free: 15.56 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009382/0.4957, allocations: 0.6651 MB / 0.5761 GB, free: 14.89 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009153/0.5048, allocations: 4.058 MB / 0.58 GB, free: 10.82 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.5048, allocations: 4 kB / 0.58 GB, free: 10.81 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.5048, allocations: 0 / 0.58 GB, free: 10.81 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.051e-05/0.5048, allocations: 0 / 0.58 GB, free: 10.81 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.003805/0.5086, allocations: 2.064 MB / 0.5821 GB, free: 8.707 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.5087, allocations: 8.031 kB / 0.5821 GB, free: 8.699 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002485/0.5089, allocations: 190.3 kB / 0.5822 GB, free: 8.504 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002011/0.511, allocations: 443.1 kB / 0.5827 GB, free: 8.07 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002126/0.5131, allocations: 0.9881 MB / 0.5836 GB, free: 7.055 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002189/0.5133, allocations: 205.5 kB / 0.5838 GB, free: 6.828 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002467/0.5135, allocations: 128 kB / 0.584 GB, free: 6.703 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003065/0.5166, allocations: 1.768 MB / 0.5857 GB, free: 4.863 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.128e-05/0.5166, allocations: 3.938 kB / 0.5857 GB, free: 4.859 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.5168, allocations: 52 kB / 0.5857 GB, free: 4.809 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.325e-05/0.5168, allocations: 32 kB / 0.5858 GB, free: 4.777 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003787/0.5206, allocations: 2.315 MB / 0.588 GB, free: 2.457 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008797/0.5294, allocations: 4.985 MB / 0.5929 GB, free: 13.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.5308, allocations: 0.6931 MB / 0.5936 GB, free: 12.63 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000599/0.5314, allocations: 332.4 kB / 0.5939 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007471/0.5389, allocations: 2.877 MB / 0.5967 GB, free: 9.387 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.5389, allocations: 34.56 kB / 0.5967 GB, free: 9.344 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 2.524e-06/0.5389, allocations: 0 / 0.5967 GB, free: 9.344 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001533/0.5404, allocations: 0.6621 MB / 0.5974 GB, free: 8.668 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.136e-05/0.5405, allocations: 110.8 kB / 0.5975 GB, free: 8.535 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001636/0.5421, allocations: 1.341 MB / 0.5988 GB, free: 7.184 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.627e-05/0.5422, allocations: 37.64 kB / 0.5988 GB, free: 7.141 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006632/0.5428, allocations: 0.8723 MB / 0.5997 GB, free: 6.258 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.543, allocations: 146.8 kB / 0.5998 GB, free: 6.113 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003812/0.5434, allocations: 287.4 kB / 0.6001 GB, free: 5.828 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.5435, allocations: 358.2 kB / 0.6004 GB, free: 5.473 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005608/0.5441, allocations: 351.8 kB / 0.6008 GB, free: 5.129 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.5454, allocations: 1.148 MB / 0.6019 GB, free: 3.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001901/0.5473, allocations: 1.541 MB / 0.6034 GB, free: 1.621 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.347e-05/0.5473, allocations: 8 kB / 0.6034 GB, free: 1.613 MB / 446.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002654/0.55, allocations: 1.563 MB / 0.6049 GB, free: 40 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.281e-05/0.55, allocations: 22.75 kB / 0.6049 GB, free: 20 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.835e-05/0.55, allocations: 28.95 kB / 0.605 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006469/0.5507, allocations: 165.2 kB / 0.6051 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.5519, allocations: 395.4 kB / 0.6055 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003298/0.5552, allocations: 3.874 MB / 0.6093 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.5564, allocations: 194.5 kB / 0.6095 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.5566, allocations: 99.98 kB / 0.6096 GB, free: 10.99 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.0006059/0.5572, allocations: 333.2 kB / 0.6099 GB, free: 10.65 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002491/0.5574, allocations: 119.2 kB / 0.61 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.5593, allocations: 0.9384 MB / 0.6109 GB, free: 9.547 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.5593, allocations: 7.938 kB / 0.6109 GB, free: 9.539 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.5593, allocations: 4 kB / 0.6109 GB, free: 9.535 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.5593, allocations: 0 / 0.6109 GB, free: 9.535 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002293/0.5616, allocations: 1.278 MB / 0.6122 GB, free: 8.172 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.5616, allocations: 4 kB / 0.6122 GB, free: 8.168 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.5619, allocations: 55.91 kB / 0.6122 GB, free: 8.113 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007722/0.5627, allocations: 183.5 kB / 0.6124 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/0.5627, allocations: 12 kB / 0.6124 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/0.5659, allocations: 3.738 MB / 0.6161 GB, free: 3.883 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/0.5659, allocations: 7.938 kB / 0.6161 GB, free: 3.875 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.5673, allocations: 0.9095 MB / 0.617 GB, free: 2.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002607/0.5676, allocations: 115.2 kB / 0.6171 GB, free: 2.797 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.5677, allocations: 15.89 kB / 0.6171 GB, free: 2.781 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.5681, allocations: 8 kB / 0.6171 GB, free: 2.773 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.374e-05/0.5682, allocations: 43.83 kB / 0.6171 GB, free: 2.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-05/0.5683, allocations: 19.98 kB / 0.6172 GB, free: 2.711 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001292/0.5695, allocations: 0.9664 MB / 0.6181 GB, free: 1.742 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5695, allocations: 0 / 0.6181 GB, free: 1.742 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002148/0.5717, allocations: 0.7085 MB / 0.6188 GB, free: 1.031 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.003357/0.5751, allocations: 2.214 MB / 0.621 GB, free: 14.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.5771, allocations: 0.8227 MB / 0.6218 GB, free: 13.93 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.5771, allocations: 4 kB / 0.6218 GB, free: 13.93 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006111/0.5777, allocations: 386.3 kB / 0.6221 GB, free: 13.53 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.579, allocations: 199.8 kB / 0.6223 GB, free: 13.34 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/0.5936, allocations: 10.47 MB / 0.6325 GB, free: 1.84 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006305/0.5942, allocations: 0.5074 MB / 0.633 GB, free: 1.297 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001034/0.5952, allocations: 317.8 kB / 0.6333 GB, free: 1.008 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007313/0.596, allocations: 0.5305 MB / 0.6339 GB, free: 488 kB / 478.1 MB Notification: Performance of SimCode: time 1.373e-06/0.596, allocations: 0 / 0.6339 GB, free: 488 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08207/0.678, allocations: 34.57 MB / 0.6676 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.77/14.44, allocations: 0 / 0.6676 GB, free: 14.16 MB / 0.5137 GB " [Timeout remaining time 645] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.301557772007072] Failed to read output from testmodel.py, exit status != 0: 14.582229859021027 14.598115978 14.089997755 Calling exit ...