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.001891/0.001891, allocations: 109.7 kB / 16.46 MB, free: 6.453 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.002416/0.002416, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.529/1.529, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.174/0.174, allocations: 23.84 MB / 332.7 MB, free: 12.35 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.002239/0.002239, allocations: 67.91 kB / 466 MB, free: 10.07 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4059, allocations: 59.81 MB / 0.5135 GB, free: 8.797 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.04788/0.4537, allocations: 28.36 MB / 0.5412 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03224/0.486, allocations: 21.71 MB / 0.5624 GB, free: 8.418 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002427/0.4884, allocations: 27.75 kB / 0.5624 GB, free: 8.391 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002334/0.4907, allocations: 0.5368 MB / 0.5629 GB, free: 7.965 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005809/0.4965, allocations: 1.001 MB / 0.5639 GB, free: 7.113 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01162/0.5082, allocations: 3.312 MB / 0.5671 GB, free: 4.348 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00368/0.5119, allocations: 1.806 MB / 0.5689 GB, free: 2.531 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001561/0.5134, allocations: 0.7818 MB / 0.5697 GB, free: 1.727 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001506/0.5149, allocations: 0.8024 MB / 0.5705 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00171/0.5166, allocations: 0.8951 MB / 0.5713 GB, free: 24 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005451/0.5172, allocations: 148 kB / 0.5715 GB, free: 15.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008323/0.5255, allocations: 2.083 MB / 0.5735 GB, free: 13.79 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007634/0.5263, allocations: 386.8 kB / 0.5739 GB, free: 13.41 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001654/0.5279, allocations: 0.8087 MB / 0.5747 GB, free: 12.6 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01489/0.5428, allocations: 4.066 MB / 0.5786 GB, free: 8.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.5428, allocations: 0 / 0.5786 GB, free: 8.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.5428, allocations: 0 / 0.5786 GB, free: 8.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.395e-05/0.5429, allocations: 0 / 0.5786 GB, free: 8.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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.006093/0.549, allocations: 2.147 MB / 0.5807 GB, free: 6.312 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.06e-05/0.5491, allocations: 8.031 kB / 0.5807 GB, free: 6.305 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004168/0.5495, allocations: 194.3 kB / 0.5809 GB, free: 6.105 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002231/0.5517, allocations: 439.1 kB / 0.5813 GB, free: 5.676 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002423/0.5541, allocations: 1.064 MB / 0.5824 GB, free: 4.57 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002109/0.5543, allocations: 154.1 kB / 0.5825 GB, free: 4.406 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003557/0.5547, allocations: 123.9 kB / 0.5826 GB, free: 4.285 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003687/0.5584, allocations: 1.752 MB / 0.5844 GB, free: 2.461 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/0.5584, allocations: 0 / 0.5844 GB, free: 2.461 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001696/0.5586, allocations: 56 kB / 0.5844 GB, free: 2.406 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.641e-05/0.5586, allocations: 32 kB / 0.5844 GB, free: 2.375 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004251/0.5629, allocations: 2.319 MB / 0.5867 GB, free: 52 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01048/0.5734, allocations: 5.584 MB / 0.5922 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.575, allocations: 0.7055 MB / 0.5928 GB, free: 9.543 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007081/0.5757, allocations: 332.4 kB / 0.5932 GB, free: 9.211 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009981/0.5857, allocations: 5.728 MB / 0.5988 GB, free: 2.789 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.643e-05/0.5857, allocations: 34.56 kB / 0.5988 GB, free: 2.746 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 2.455e-06/0.5857, allocations: 0 / 0.5988 GB, free: 2.746 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.002123/0.5878, allocations: 0.806 MB / 0.5996 GB, free: 1.891 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.616e-05/0.5879, allocations: 118.7 kB / 0.5997 GB, free: 1.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.5901, allocations: 1.283 MB / 0.6009 GB, free: 468 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.475e-05/0.5901, allocations: 29.7 kB / 0.601 GB, free: 432 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008114/0.591, allocations: 0.8609 MB / 0.6018 GB, free: 15.55 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001975/0.5912, allocations: 158.8 kB / 0.602 GB, free: 15.39 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004837/0.5916, allocations: 295.3 kB / 0.6022 GB, free: 15.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002159/0.5919, allocations: 353.9 kB / 0.6026 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006402/0.5925, allocations: 339.9 kB / 0.6029 GB, free: 14.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.594, allocations: 1.152 MB / 0.604 GB, free: 12.85 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002388/0.5964, allocations: 1.526 MB / 0.6055 GB, free: 10.91 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.776e-05/0.5964, allocations: 8 kB / 0.6055 GB, free: 10.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.00334/0.5998, allocations: 1.563 MB / 0.6071 GB, free: 9.332 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.602e-05/0.5998, allocations: 19.75 kB / 0.6071 GB, free: 9.316 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.071e-05/0.5999, allocations: 28 kB / 0.6071 GB, free: 9.289 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007338/0.6006, allocations: 149.4 kB / 0.6072 GB, free: 9.137 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.6019, allocations: 403.8 kB / 0.6076 GB, free: 8.742 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004008/0.6059, allocations: 4.073 MB / 0.6116 GB, free: 4.328 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.6072, allocations: 190.8 kB / 0.6118 GB, free: 4.141 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002582/0.6075, allocations: 99.98 kB / 0.6119 GB, free: 4.043 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.0007399/0.6082, allocations: 340.9 kB / 0.6122 GB, free: 3.699 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003924/0.6086, allocations: 119.2 kB / 0.6123 GB, free: 3.582 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002242/0.6108, allocations: 0.9481 MB / 0.6132 GB, free: 2.594 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.6109, allocations: 4 kB / 0.6132 GB, free: 2.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.6109, allocations: 4 kB / 0.6133 GB, free: 2.586 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.6109, allocations: 0 / 0.6133 GB, free: 2.586 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002956/0.6138, allocations: 1.38 MB / 0.6146 GB, free: 1.113 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.6138, allocations: 0 / 0.6146 GB, free: 1.113 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002797/0.6141, allocations: 63.84 kB / 0.6147 GB, free: 1.051 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008629/0.615, allocations: 175.5 kB / 0.6148 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.275e-05/0.615, allocations: 19.98 kB / 0.6148 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003823/0.6188, allocations: 3.951 MB / 0.6187 GB, free: 12.55 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/0.6188, allocations: 7.938 kB / 0.6187 GB, free: 12.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.6205, allocations: 0.9136 MB / 0.6196 GB, free: 11.58 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004802/0.621, allocations: 188.3 kB / 0.6198 GB, free: 11.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002842/0.6213, allocations: 23.89 kB / 0.6198 GB, free: 11.35 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005064/0.6218, allocations: 8 kB / 0.6198 GB, free: 11.34 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.317e-05/0.6219, allocations: 39.83 kB / 0.6199 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.622, allocations: 20 kB / 0.6199 GB, free: 11.29 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001666/0.6236, allocations: 0.9586 MB / 0.6208 GB, free: 10.32 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6236, allocations: 4 kB / 0.6208 GB, free: 10.32 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002804/0.6264, allocations: 0.7085 MB / 0.6215 GB, free: 9.609 MB / 478.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.004299/0.6307, allocations: 2.193 MB / 0.6236 GB, free: 7.348 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002257/0.633, allocations: 0.813 MB / 0.6244 GB, free: 6.539 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.633, allocations: 1.875 kB / 0.6244 GB, free: 6.539 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006971/0.6337, allocations: 397.6 kB / 0.6248 GB, free: 6.125 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.6353, allocations: 192 kB / 0.625 GB, free: 5.941 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01974/0.6551, allocations: 10.44 MB / 0.6352 GB, free: 10.46 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/0.6564, allocations: 1.095 MB / 0.6363 GB, free: 9.34 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001206/0.6576, allocations: 309.9 kB / 0.6366 GB, free: 9.055 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009894/0.6586, allocations: 0.5383 MB / 0.6371 GB, free: 8.516 MB / 494.1 MB Notification: Performance of SimCode: time 2.796e-06/0.6586, allocations: 0 / 0.6371 GB, free: 8.516 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08755/0.7461, allocations: 33.09 MB / 0.6694 GB, free: 7.617 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.02/25.76, allocations: 4 kB / 0.6694 GB, free: 7.613 MB / 0.5137 GB " [Timeout remaining time 634] (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: 28.664691803976893] Failed to read output from testmodel.py, exit status != 0: 25.881536920089275 25.905783268 25.357784047 Calling exit ...