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.001328/0.001328, allocations: 107.8 kB / 16.45 MB, free: 6.02 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.001376/0.001376, allocations: 208.3 kB / 19.43 MB, free: 3.516 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.454/1.454, allocations: 230.6 MB / 252.8 MB, free: 8.941 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.1362/0.1362, allocations: 23.84 MB / 332.7 MB, free: 12.37 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.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_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.002165/0.002165, allocations: 78.22 kB / 466 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.335, allocations: 59.81 MB / 0.5135 GB, free: 8.871 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.04169/0.3767, allocations: 27.77 MB / 0.5406 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02303/0.3997, allocations: 18.28 MB / 0.5584 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.4011, allocations: 23.81 kB / 0.5585 GB, free: 12.11 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001587/0.4026, allocations: 475.7 kB / 0.5589 GB, free: 11.74 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002956/0.4056, allocations: 0.839 MB / 0.5597 GB, free: 11.03 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008648/0.4142, allocations: 2.815 MB / 0.5625 GB, free: 8.691 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002971/0.4172, allocations: 1.639 MB / 0.5641 GB, free: 7.207 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001497/0.4187, allocations: 0.7503 MB / 0.5648 GB, free: 6.609 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001657/0.4204, allocations: 0.7311 MB / 0.5655 GB, free: 5.949 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002083/0.4225, allocations: 0.8201 MB / 0.5663 GB, free: 5.141 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000644/0.4231, allocations: 140 kB / 0.5665 GB, free: 5.004 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008281/0.4314, allocations: 1.782 MB / 0.5682 GB, free: 3.219 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007439/0.4321, allocations: 358.8 kB / 0.5686 GB, free: 2.867 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001505/0.4336, allocations: 0.7505 MB / 0.5693 GB, free: 2.113 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009494/0.4431, allocations: 3.579 MB / 0.5728 GB, free: 14.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.4431, allocations: 0 / 0.5728 GB, free: 14.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.4431, allocations: 0 / 0.5728 GB, free: 14.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.7e-05/0.4432, allocations: 0 / 0.5728 GB, free: 14.52 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.004068/0.4473, allocations: 1.98 MB / 0.5747 GB, free: 12.48 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.4473, allocations: 8.031 kB / 0.5747 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002828/0.4476, allocations: 181.7 kB / 0.5749 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001732/0.4493, allocations: 391.3 kB / 0.5753 GB, free: 11.9 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001825/0.4511, allocations: 0.9815 MB / 0.5762 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.4513, allocations: 149.9 kB / 0.5764 GB, free: 10.72 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002403/0.4515, allocations: 119.9 kB / 0.5765 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003039/0.4546, allocations: 1.656 MB / 0.5781 GB, free: 8.871 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.446e-05/0.4546, allocations: 7.875 kB / 0.5781 GB, free: 8.863 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001591/0.4548, allocations: 48 kB / 0.5782 GB, free: 8.816 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.963e-05/0.4548, allocations: 28 kB / 0.5782 GB, free: 8.789 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003437/0.4582, allocations: 2.104 MB / 0.5802 GB, free: 6.684 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008818/0.4671, allocations: 5.445 MB / 0.5856 GB, free: 1.047 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.4685, allocations: 0.7015 MB / 0.5862 GB, free: 324 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006412/0.4691, allocations: 328.4 kB / 0.5866 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007831/0.4769, allocations: 5.059 MB / 0.5915 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.477, allocations: 50.48 kB / 0.5915 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003371/0.4773, allocations: 79.19 kB / 0.5916 GB, free: 10.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.925e-06/0.4773, allocations: 0 / 0.5916 GB, free: 10.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001609/0.4789, allocations: 0.7428 MB / 0.5923 GB, free: 9.414 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.899e-05/0.479, allocations: 110.8 kB / 0.5924 GB, free: 9.281 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/0.4805, allocations: 1.203 MB / 0.5936 GB, free: 8.062 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.692e-05/0.4806, allocations: 37.7 kB / 0.5937 GB, free: 8.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006374/0.4812, allocations: 0.7945 MB / 0.5944 GB, free: 7.215 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.4814, allocations: 139 kB / 0.5946 GB, free: 7.078 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003916/0.4818, allocations: 282.6 kB / 0.5948 GB, free: 6.797 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.4819, allocations: 345.9 kB / 0.5952 GB, free: 6.453 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005549/0.4825, allocations: 322.5 kB / 0.5955 GB, free: 6.137 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.4837, allocations: 1.046 MB / 0.5965 GB, free: 4.723 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001804/0.4855, allocations: 1.403 MB / 0.5979 GB, free: 2.953 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.678e-05/0.4855, allocations: 8 kB / 0.5979 GB, free: 2.945 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002536/0.488, allocations: 1.437 MB / 0.5993 GB, free: 1.496 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/0.488, allocations: 19.94 kB / 0.5993 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.825e-05/0.4881, allocations: 28 kB / 0.5993 GB, free: 1.449 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006746/0.4888, allocations: 149.6 kB / 0.5995 GB, free: 1.297 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.49, allocations: 379.4 kB / 0.5998 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003522/0.4935, allocations: 4.069 MB / 0.6038 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00099/0.4945, allocations: 75.95 kB / 0.6039 GB, free: 12.44 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/0.4947, allocations: 91.98 kB / 0.604 GB, free: 12.35 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.0005948/0.4952, allocations: 324 kB / 0.6043 GB, free: 12.03 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002591/0.4955, allocations: 107.3 kB / 0.6044 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.4973, allocations: 0.8439 MB / 0.6052 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.4973, allocations: 11.94 kB / 0.6052 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.4973, allocations: 0 / 0.6052 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.4973, allocations: 7.984 kB / 0.6052 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.4997, allocations: 1.259 MB / 0.6064 GB, free: 9.676 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.4997, allocations: 0 / 0.6064 GB, free: 9.676 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.5, allocations: 63.91 kB / 0.6065 GB, free: 9.613 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008097/0.5008, allocations: 179.2 kB / 0.6067 GB, free: 9.426 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.626e-05/0.5009, allocations: 12 kB / 0.6067 GB, free: 9.414 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003305/0.5042, allocations: 3.947 MB / 0.6105 GB, free: 5.121 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.5042, allocations: 4.031 kB / 0.6105 GB, free: 5.117 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.5057, allocations: 0.8734 MB / 0.6114 GB, free: 4.195 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003473/0.5061, allocations: 176.4 kB / 0.6116 GB, free: 4.004 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002583/0.5063, allocations: 8 kB / 0.6116 GB, free: 3.996 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004808/0.5068, allocations: 8 kB / 0.6116 GB, free: 3.988 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.992e-05/0.5069, allocations: 47.89 kB / 0.6116 GB, free: 3.941 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.981e-05/0.5069, allocations: 16 kB / 0.6116 GB, free: 3.926 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001314/0.5082, allocations: 0.8849 MB / 0.6125 GB, free: 3.035 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5082, allocations: 0 / 0.6125 GB, free: 3.035 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002273/0.5105, allocations: 0.6306 MB / 0.6131 GB, free: 2.402 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.003187/0.5137, allocations: 2.052 MB / 0.6151 GB, free: 296 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.5155, allocations: 0.7649 MB / 0.6159 GB, free: 15.53 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5155, allocations: 0.875 kB / 0.6159 GB, free: 15.53 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005823/0.5161, allocations: 381.4 kB / 0.6162 GB, free: 15.13 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.5173, allocations: 167.5 kB / 0.6164 GB, free: 14.97 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01407/0.5314, allocations: 9.625 MB / 0.6258 GB, free: 4.422 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007926/0.5322, allocations: 1.063 MB / 0.6268 GB, free: 3.332 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008312/0.533, allocations: 281.6 kB / 0.6271 GB, free: 3.074 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006631/0.5337, allocations: 499.2 kB / 0.6276 GB, free: 2.586 MB / 478.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5337, allocations: 3.938 kB / 0.6276 GB, free: 2.582 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07488/0.6085, allocations: 29.68 MB / 0.6566 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.79/23.4, allocations: 8.062 kB / 0.6566 GB, free: 5.09 MB / 0.4981 GB " [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.09621663298458] Failed to read output from testmodel.py, exit status != 0: 23.51253062696196 23.52667971 23.080416249 Calling exit ...