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.001316/0.001316, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001526/0.001526, allocations: 218.8 kB / 23.03 MB, free: 4.922 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.493/1.493, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1406/0.1406, allocations: 23.88 MB / 337.1 MB, free: 10.96 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="cs",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.001995/0.001995, allocations: 67.91 kB / 471.9 MB, free: 7.508 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3195, allocations: 59.85 MB / 0.5193 GB, free: 9.543 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.0729/0.3924, allocations: 26.81 MB / 0.5455 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0243/0.4167, allocations: 16.03 MB / 0.5611 GB, free: 14.22 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.4179, allocations: 27.75 kB / 0.5612 GB, free: 14.19 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001556/0.4194, allocations: 431.7 kB / 0.5616 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002965/0.4224, allocations: 0.8022 MB / 0.5624 GB, free: 13.19 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008333/0.4307, allocations: 2.855 MB / 0.5651 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002862/0.4336, allocations: 1.633 MB / 0.5667 GB, free: 9.289 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.4349, allocations: 0.739 MB / 0.5675 GB, free: 8.527 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.4361, allocations: 0.7245 MB / 0.5682 GB, free: 7.801 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001438/0.4375, allocations: 0.8172 MB / 0.569 GB, free: 6.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003888/0.4379, allocations: 144 kB / 0.5691 GB, free: 6.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005015/0.4429, allocations: 1.704 MB / 0.5708 GB, free: 5.133 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005713/0.4435, allocations: 362.8 kB / 0.5711 GB, free: 4.777 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001076/0.4445, allocations: 0.6224 MB / 0.5717 GB, free: 4.152 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008197/0.4527, allocations: 3.575 MB / 0.5752 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.4528, allocations: 0 / 0.5752 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4528, allocations: 0 / 0.5752 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.774e-05/0.4528, allocations: 4 kB / 0.5752 GB, free: 0.5586 MB / 414.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.00434/0.4572, allocations: 1.893 MB / 0.5771 GB, free: 14.62 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.4572, allocations: 8.031 kB / 0.5771 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.339e-05/0.4573, allocations: 34.58 kB / 0.5771 GB, free: 14.58 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003051/0.4576, allocations: 173.8 kB / 0.5773 GB, free: 14.4 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001782/0.4594, allocations: 395.3 kB / 0.5777 GB, free: 14.01 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.4613, allocations: 0.9159 MB / 0.5785 GB, free: 13.07 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002035/0.4615, allocations: 205.1 kB / 0.5787 GB, free: 12.84 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002773/0.4618, allocations: 112 kB / 0.5788 GB, free: 12.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003096/0.4649, allocations: 1.66 MB / 0.5805 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/0.4649, allocations: 4 kB / 0.5805 GB, free: 10.99 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/0.4651, allocations: 52 kB / 0.5805 GB, free: 10.94 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.088e-05/0.4651, allocations: 36 kB / 0.5806 GB, free: 10.91 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003427/0.4685, allocations: 2.124 MB / 0.5826 GB, free: 8.781 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008369/0.4769, allocations: 4.852 MB / 0.5874 GB, free: 3.801 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.4783, allocations: 0.6977 MB / 0.5881 GB, free: 3.078 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005974/0.4789, allocations: 328.4 kB / 0.5884 GB, free: 2.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006731/0.4856, allocations: 2.659 MB / 0.591 GB, free: 68 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.4857, allocations: 38.56 kB / 0.591 GB, free: 20 kB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003443/0.486, allocations: 79.3 kB / 0.5911 GB, free: 15.94 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.525e-06/0.486, allocations: 0 / 0.5911 GB, free: 15.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001457/0.4875, allocations: 0.6076 MB / 0.5917 GB, free: 15.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.563e-05/0.4876, allocations: 106.8 kB / 0.5918 GB, free: 15.19 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001501/0.4891, allocations: 1.214 MB / 0.593 GB, free: 13.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.279e-05/0.4891, allocations: 41.89 kB / 0.593 GB, free: 13.91 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006055/0.4897, allocations: 0.7945 MB / 0.5938 GB, free: 13.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.4899, allocations: 142.9 kB / 0.5939 GB, free: 12.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003705/0.4902, allocations: 274.7 kB / 0.5942 GB, free: 12.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.4904, allocations: 353.9 kB / 0.5945 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005389/0.4909, allocations: 326.5 kB / 0.5948 GB, free: 12.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.4921, allocations: 1.054 MB / 0.5958 GB, free: 10.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001768/0.4939, allocations: 1.407 MB / 0.5972 GB, free: 8.836 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.541e-05/0.4939, allocations: 8 kB / 0.5972 GB, free: 8.828 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002474/0.4964, allocations: 1.455 MB / 0.5986 GB, free: 7.359 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.4964, allocations: 19.94 kB / 0.5987 GB, free: 7.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.297e-05/0.4964, allocations: 28 kB / 0.5987 GB, free: 7.312 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006494/0.4971, allocations: 146.2 kB / 0.5988 GB, free: 7.164 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.4983, allocations: 375.4 kB / 0.5992 GB, free: 6.797 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003325/0.5016, allocations: 3.866 MB / 0.603 GB, free: 2.645 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009529/0.5026, allocations: 79.91 kB / 0.603 GB, free: 2.566 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/0.5027, allocations: 92.08 kB / 0.6031 GB, free: 2.477 MB / 446.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.0005082/0.5032, allocations: 309.2 kB / 0.6034 GB, free: 2.164 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002285/0.5035, allocations: 111.3 kB / 0.6035 GB, free: 2.055 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.5053, allocations: 0.8508 MB / 0.6044 GB, free: 1.164 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.5053, allocations: 4 kB / 0.6044 GB, free: 1.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.5053, allocations: 0 / 0.6044 GB, free: 1.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5053, allocations: 4 kB / 0.6044 GB, free: 1.156 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00226/0.5076, allocations: 1.183 MB / 0.6055 GB, free: 15.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.5076, allocations: 0 / 0.6055 GB, free: 15.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000286/0.5079, allocations: 59.91 kB / 0.6056 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007904/0.5087, allocations: 179.2 kB / 0.6058 GB, free: 15.65 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.291e-05/0.5087, allocations: 12 kB / 0.6058 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003157/0.5119, allocations: 3.74 MB / 0.6094 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.5119, allocations: 4.031 kB / 0.6094 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.5133, allocations: 0.8599 MB / 0.6103 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.5135, allocations: 103.2 kB / 0.6104 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.5137, allocations: 8 kB / 0.6104 GB, free: 10.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003971/0.514, allocations: 12 kB / 0.6104 GB, free: 10.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.44e-05/0.5141, allocations: 35.89 kB / 0.6104 GB, free: 10.53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/0.5142, allocations: 19.98 kB / 0.6104 GB, free: 10.51 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001221/0.5154, allocations: 0.8888 MB / 0.6113 GB, free: 9.617 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5154, allocations: 0 / 0.6113 GB, free: 9.617 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001944/0.5173, allocations: 0.6345 MB / 0.6119 GB, free: 8.98 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.00301/0.5203, allocations: 2.061 MB / 0.6139 GB, free: 6.863 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.5221, allocations: 0.7663 MB / 0.6147 GB, free: 6.102 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.5221, allocations: 4.938 kB / 0.6147 GB, free: 6.098 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005915/0.5227, allocations: 381.4 kB / 0.615 GB, free: 5.699 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.5239, allocations: 171.5 kB / 0.6152 GB, free: 5.535 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01369/0.5376, allocations: 9.669 MB / 0.6247 GB, free: 10.95 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005262/0.5381, allocations: 476.8 kB / 0.6251 GB, free: 10.45 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008785/0.539, allocations: 288 kB / 0.6254 GB, free: 10.18 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006816/0.5397, allocations: 499.2 kB / 0.6259 GB, free: 9.691 MB / 478.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5397, allocations: 0 / 0.6259 GB, free: 9.691 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06926/0.6089, allocations: 30.62 MB / 0.6558 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.8/24.41, allocations: 10.8 kB / 0.6558 GB, free: 11.34 MB / 0.4981 GB " [Timeout remaining time 635] (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: 27.318473394028842] Failed to read output from testmodel.py, exit status != 0: 24.604500030982308 24.627717086 24.170262381 Calling exit ...